Update Asset
PUT/organizations/:organizationId/assets/:assetId
Update asset
Request
Path Parameters
The ID of organization.
The ID of asset
- application/json
Body
required
The name of asset
The description of asset
The ID of chat room
The locationId of asset
The integration service ID of asset.
The IDs of asset.
The serial number of asset
The serial number of asset
The name of manufacturer
The year of manufacture of asset
The purchase cost of asset
The purchase date of asset
The warranty end date of asset
The image of asset
The files of asset
The interval of keep alive
Responses
- 200
- 401
- 403
- 404
- 422
- application/json
- Schema
- Example (from schema)
- Example
Schema
data objectrequired
Data of the asset.
{
"data": {
"assetTypeId": "string",
"locationId": "string",
"name": "string",
"description": "string",
"chatRoomId": "string",
"serialNumber": 0,
"nameOfManufacturer": "string",
"yearOfManufacture": 0,
"purchaseCost": 0,
"purchaseDate": "string",
"warrantyEndDate": "string",
"images": "string",
"files": "string",
"integrationServiceId": "string",
"devEui": "string",
"uuid": "string",
"keepAlive": 0,
"connectionStatus": {},
"status": "string",
"updatedAtDateString": 0,
"updatedAt": 0
}
}
{
"data": {
"assetTypeId": "a-assetTypeId",
"locationId": "l-locationId",
"name": "IDT-Bot",
"description": "IDT-Description",
"chatRoomId": "ABCDE",
"serialNumber": "123456789",
"nameOfManufacturer": "Bot-Manufacturer",
"yearOfManufacture": 2024,
"purchaseCost": 12345,
"purchaseDate": 1700000000000,
"warrantyEndDate": 1800000000000,
"image": "Asset-Image.png",
"integrationServiceId": "is-integrationserviceId",
"files": [
"Infodeck-Bot-0001.pdf"
],
"devEui": "24e124535b312345",
"uuid": "24e124535b312345",
"keepAlive": 2592000,
"connectionStatus": false,
"status": "Normal",
"updatedAtDateString": "2024-01-31T00:00:00.000Z",
"updatedAt": 1706659200000
}
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
The request has not permission.
The request has not permission message.
{
"error": "string",
"message": "string"
}
{
"error": "Unauthenticated",
"message": "Authentication is required and has failed or has not yet been provided."
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
The request has not permission.
The request has not permission message.
{
"error": "string",
"message": "string"
}
{
"error": "Forbidden",
"message": "Access to the requested resource is forbidden."
}
The resource hasn't found.
- application/json
- Schema
- Example (from schema)
- Example
Schema
The resource hasn't found.
The resource hasn't found message.
{
"error": "string",
"message": "string"
}
{
"error": "ResourceNotFound",
"message": "The requested resource could not be found."
}
The input data has invalid.
- application/json
- Schema
- Example (from schema)
- Example
Schema
The input data has invalid.
The input data has invalid message.
{
"error": "string",
"message": "string"
}
{
"error": "ValidationError",
"message": "Input data validation failed."
}