Ticket forms
Ticket forms: 5 operations of the ChaosDesk REST API.
- GET
/api/ticket_formsRetrieves the collection of TicketForm resources. - POST
/api/ticket_formsCreates a TicketForm resource. - GET
/api/ticket_forms/{id}Retrieves a TicketForm resource. - PATCH
/api/ticket_forms/{id}Updates the TicketForm resource. - DELETE
/api/ticket_forms/{id}Removes the TicketForm resource.
Retrieves the collection of TicketForm resources.
Responses
200TicketForm collection403Forbidden
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/ticket_forms" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Creates a TicketForm resource.
Request body application/json
namestringrequireddisplay_namestring | null- Name shown to customers in the help centre (defaults to name).
positionintegeractivebooleandefaultbooleanend_user_visiblebooleanfield_idsstring[]- ticket field ids, in display order
conditionsobject[]- agent conditions (Zendesk
agent_conditions) end_user_conditionsobject[]- help-centre conditions (Zendesk
end_user_conditions); same shape asconditions brand_idsstring[]- brand ids the form is offered for (Zendesk
restricted_brand_ids); empty = every brand
Responses
201TicketForm resource created400Invalid input403Forbidden422An error occurred
Example request
curl -X POST "https://yourcompany.chaosdesk.io/api/ticket_forms" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"name":"string"}' Retrieves a TicketForm resource.
Parameters
idstringpathrequired- TicketForm identifier
Responses
200TicketForm resource403Forbidden404Not found
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/ticket_forms/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Updates the TicketForm resource.
Parameters
idstringpathrequired- TicketForm identifier
Request body application/merge-patch+json
namestringdisplay_namestring | null- Name shown to customers in the help centre (defaults to name).
positionintegeractivebooleandefaultbooleanend_user_visiblebooleanfield_idsstring[]- ticket field ids, in display order
conditionsobject[]- agent conditions (Zendesk
agent_conditions) end_user_conditionsobject[]- help-centre conditions (Zendesk
end_user_conditions); same shape asconditions brand_idsstring[]- brand ids the form is offered for (Zendesk
restricted_brand_ids); empty = every brand
Responses
200TicketForm resource updated400Invalid input403Forbidden404Not found422An error occurred
Example request
curl -X PATCH "https://yourcompany.chaosdesk.io/api/ticket_forms/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/merge-patch+json" \
-d '{"name":"string","display_name":"string"}' Removes the TicketForm resource.
Parameters
idstringpathrequired- TicketForm identifier
Responses
204TicketForm resource deleted403Forbidden404Not found
Example request
curl -X DELETE "https://yourcompany.chaosdesk.io/api/ticket_forms/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json"