Deskhero Developer Hub
Back to deskhero.com
Categories

Update

Overwrites the category identified by the id in the path. Every writable property (name, unique_key, description, visibility, icon_id, parent_id) is taken from the payload, so leaving one out clears it rather than keeping the stored value. A category cannot be made its own parent, and the name must stay unique among the categories sharing the same parent.

PUT /api/{tenant:minlength(2)}/v{version:apiVersion}/categories/{id}
Authorisation
Minimum role: ADMIN

Request arguments

Name Type Source
idInt32
inputDTO_categoryBody
Request body example

Response

Status
200 (OK)
Type
DTO_category
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_category
NameTypeReadOnlyDescription
created_byDTO_reference_userReadOnlyCreated by
last_updated_byDTO_reference_userReadOnlyLast updated by
childrenDTO_category[]ReadOnlyChildren
idInt32ReadOnlyLeave empty when Creating object
parent_idInt32Parent id
nameStringName
name_pathString[]ReadOnlyName path
unique_keyStringUnique key
descriptionStringDescription
visibilityENUM category_visibilityVisibility
icon_idInt32Icon id
icon_fileStringReadOnlyIcon file
createdDateTimeReadOnlyCreated
last_updatedDateTimeReadOnlyLast updated
DTO_reference_user
NameTypeReadOnlyDescription
profile_picStringReadOnlyProfile pic
emailStringReadOnlyEmail
idInt32Id
labelObjectReadOnlyLabel
DTO_category
NameTypeReadOnlyDescription
created_byDTO_reference_userReadOnlyCreated by
last_updated_byDTO_reference_userReadOnlyLast updated by
childrenDTO_category[]ReadOnlyChildren
idInt32ReadOnlyLeave empty when Creating object
parent_idInt32Parent id
nameStringName
name_pathString[]ReadOnlyName path
unique_keyStringUnique key
descriptionStringDescription
visibilityENUM category_visibilityVisibility
icon_idInt32Icon id
icon_fileStringReadOnlyIcon file
createdDateTimeReadOnlyCreated
last_updatedDateTimeReadOnlyLast updated
ENUM category_visibility
ValueNameDescription
0UNKNOWNUNKNOWN
1INTERNALINTERNAL
2HELP_CENTERHELP CENTER

Generated Aug 4, 2026 18:37