latestOpenAPI 3.0.02026-08-2217901.1 MB

ef9153fcac7c

Asset Custom Statuses

Update asset custom status

patch/assetcustomstatuses/{id}

Path parameters

idinteger required

ID of the assetCustomStatus

Query parameters

skipWebhookboolean

Set skipWebhook=true, skipWebhook=1 or skipWebhook=yes to skip all webhooks upon successful operation on the endpoint. Learn more about webhooks

Headers

x-organization-idinteger

Required if using a multi organizations token

Request body

labelstring required

Example request

{
  "label": "Decommissioned"
}

Response

Successfully edited asset custom status

Example response

{
  "assetcustomstatus": {
    "baseAssetStatus": "OFFLINE",
    "label": "Decommissioned",
    "createdAt": "2022-01-01T12:34:56.123Z",
    "updatedAt": "2022-01-01T12:34:56.123Z",
    "deletedAt": "2022-01-01T12:34:56.123Z"
  }
}