latestOpenAPI 3.0.02026-08-2217901.1 MB

ef9153fcac7c

Categories

Update category

patch/categories/{id}

Path parameters

idinteger required

ID of the category

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

Request body

labelstring

Label used when displaying the category.

descriptionstring

Description field for additional information.

Example request

{
  "label": "Safety",
  "description": "Used for everything related to Safety"
}

Response

Successfully edited category

Example response

{
  "category": {
    "id": 963,
    "label": "Safety",
    "description": "Used for everything related to Safety",
    "workOrderCount": 3,
    "updatedAt": "2022-01-01T00:00:00.000Z"
  }
}