Deskhero Developer Hub
Back to deskhero.com
Custom instructions

Update

Replaces the text and the trigger of one custom instruction; there is no partial update, and leaving either of the two out of the body fails validation rather than preserving the stored value. The id is taken from the route, the instruction keeps its place in the order (move it with the sort endpoint instead), and the workspace's cached AI answers are discarded so the new wording takes effect at once.

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

Request arguments

Name Type Source
idInt32
inputDTO_custom_instructionBody
Request body example

Response

Status
200 (OK)
Type
DTO_custom_instruction
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_custom_instruction
NameTypeReadOnlyDescription
created_byDTO_reference_userReadOnlyCreated by
last_updated_byDTO_reference_userReadOnlyLast updated by
idInt32ReadOnlyLeave empty when Creating object
valueStringThe instruction text, 2 to 500 characters, which may contain placeholders as long as every one of them is a placeholder Deskhero knows
lexo_rankStringReadOnlyLexo rank
triggerENUM custom_instruction_triggerTrigger
createdDateTimeReadOnlyCreated
last_updatedDateTimeReadOnlyLast updated
DTO_reference_user
NameTypeReadOnlyDescription
profile_picStringReadOnlyProfile pic
emailStringReadOnlyEmail
idInt32Id
labelObjectReadOnlyLabel
ENUM custom_instruction_trigger
ValueNameDescription
0UNKNOWNUNKNOWN
1NEW_TICKET_SUGGESTED_REPLYNEW_TICKET_SUGGESTED_REPLY

Generated Aug 4, 2026 18:37