Create a maintenance request category
Creates a maintenance request category for the company and returns it. Requires the maintenance_request_categories:write permission.
Authorization
AuthorizationstringrequiredBearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.
Body
application/json
namestringrequiredThe category name shown to staff, for example "Plumbing". Between 1 and 150 characters, and it must not match a category the company already has.
descriptionstringA longer explanation of what belongs in the category. At most 2000 characters.
Response
200 · The category that was created.
idstringrequiredThe new category.
companyIdstringrequiredThe company that owns the category, taken from the access token.
namestringrequiredThe category name.
descriptionstringThe explanation, absent when none was sent.
createdstring · date-timerequiredWhen the category was created, in the company's timezone and without an offset.
updatedstring · date-timerequiredWhen the category was last changed, in the company's timezone and without an offset.