Deskhero Developer Hub
Back to deskhero.com
Custom instructions

Update

Replaces the text, the scope (groups, sys_tags) and the feature flags of one custom instruction; there is no partial update, so a list left out of the body clears that part of the scope and a flag left out is stored as true. 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), 401 (Unauthorized), 403 (Forbidden), 429 (TooManyRequests)
Response body example
DTO_custom_instruction
NameTypeReadOnlyDescription
created_byDTO_reference_userReadOnlyCreated by
last_updated_byDTO_reference_userReadOnlyLast updated by
groupsDTO_reference[]Groups the instruction is limited to; leave empty to apply it to every group
sys_tagsDTO_reference[]Tags the instruction is limited to, applied when the ticket carries at least one of them; leave empty to apply it regardless of tags. A label without an id creates the tag
idInt32ReadOnlyLeave empty when Creating object
valueStringThe instruction text, 2 to 3000 characters, which may contain placeholders as long as every one of them is a placeholder Deskhero knows
lexo_rankStringReadOnlyLexo rank
suggested_reply_enabledBooleanUse the instruction when drafting suggested replies for Users; true when left out
ai_auto_reply_enabledBooleanUse the instruction when the AI writes the auto-reply email on a new ticket; true when left out
chat_bot_enabledBooleanUse the instruction in AI chat-bot replies on public forms; true when left out
createdDateTimeReadOnlyCreated
last_updatedDateTimeReadOnlyLast updated
DTO_reference_user
NameTypeReadOnlyDescription
profile_picStringReadOnlyProfile pic
emailStringReadOnlyEmail
idInt32Id
labelObjectReadOnlyLabel
DTO_reference
NameTypeReadOnlyDescription
idInt32The id of the reference
labelObjectReadOnlyName/Label from referenced object.

Generated Sep 18, 2026 09:31