Update Asset status Thresholds
PUT/organizations/:organizationId/assets/:assetId/status-thresholds
Update asset status thresholds
Request
Path Parameters
organizationId stringrequired
The ID of organization.
assetId stringrequired
The ID of the asset.
- application/json
Body
required
- Array [
- ]
- Array [
- ]
statusThresholds objectrequired
The status of asset threshold.
critical object[]required
property stringrequired
symbol stringrequired
valueDataType stringrequired
value numberrequired
operator string
warning object[]required
property stringrequired
symbol stringrequired
valueDataType stringrequired
value numberrequired
operator string
Responses
- 200
- 401
- 403
- 404
- 422
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
- Array [
- ]
data objectrequired
Data of the asset threshold.
statusThresholds objectrequired
critical object[]required
property stringrequired
symbol stringrequired
valueDataType stringrequired
value numberrequired
operator string
warning object[]required
property stringrequired
symbol stringrequired
valueDataType stringrequired
value numberrequired
operator string
{
  "data": {
    "statusThresholds": {
      "critical": [
        {
          "property": "string",
          "symbol": "string",
          "valueDataType": "string",
          "value": 0,
          "operator": "string"
        }
      ],
      "warning": [
        {
          "property": "string",
          "symbol": "string",
          "valueDataType": "string",
          "value": 0,
          "operator": "string"
        }
      ]
    }
  }
}
{
  "data": {
    "statusThresholds": {
      "critical": [
        {
          "property": "Temperature",
          "symbol": ">",
          "valueDataType": "integer",
          "value": 40
        },
        {
          "property": "Current",
          "symbol": ">",
          "valueDataType": "float",
          "value": 10,
          "operator": "AND"
        }
      ],
      "warning": [
        {
          "property": "Temperature",
          "symbol": "<",
          "valueDataType": "integer",
          "value": 40
        },
        {
          "property": "Current",
          "symbol": "<",
          "valueDataType": "float",
          "value": 10,
          "operator": "AND"
        }
      ]
    }
  }
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The request has not permission.
message stringrequired
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
error stringrequired
The request has not permission.
message stringrequired
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
error stringrequired
The resource hasn't found.
message stringrequired
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
error stringrequired
The input data has invalid.
message stringrequired
The input data has invalid message.
{
  "error": "string",
  "message": "string"
}
{
  "error": "ValidationError",
  "message": "Input data validation failed."
}
Loading...