Views
Views: 5 operations of the ChaosDesk REST API.
- GET
/api/viewsRetrieves the collection of View resources. - POST
/api/viewsCreates a View resource. - GET
/api/views/{id}Retrieves a View resource. - PATCH
/api/views/{id}Updates the View resource. - DELETE
/api/views/{id}Removes the View resource.
Retrieves the collection of View resources.
Responses
200View collection403Forbidden
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/views" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Creates a View resource.
Request body application/json
sharedboolean | null- Write-only switch: false makes it personal to the current agent (set by PersonalRuleProcessor).
conditionsobjectcolumnsstring[]- table columns, e.g. ["status","subject","requester","updated_at","assignee","priority"]
sort_bystringsort_orderstringgroup_bystring | null- Zendesk "Group by" (execution.group_by): status, priority, type, group, assignee, requester, organization, brand, form or "custom_fields.<key>" of a drop-down field; null = not grouped.
group_orderstringtitlestringrequireddescriptionstring | nullactivebooleanpositionintegerrestricted_groupsstring (iri-reference)[]
Responses
201View resource created400Invalid input403Forbidden422An error occurred
Example request
curl -X POST "https://yourcompany.chaosdesk.io/api/views" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"title":"string"}' Retrieves a View resource.
Parameters
idstringpathrequired- View identifier
Responses
200View resource403Forbidden404Not found
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/views/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Updates the View resource.
Parameters
idstringpathrequired- View identifier
Request body application/merge-patch+json
sharedboolean | null- Write-only switch: false makes it personal to the current agent (set by PersonalRuleProcessor).
conditionsobjectcolumnsstring[]- table columns, e.g. ["status","subject","requester","updated_at","assignee","priority"]
sort_bystringsort_orderstringgroup_bystring | null- Zendesk "Group by" (execution.group_by): status, priority, type, group, assignee, requester, organization, brand, form or "custom_fields.<key>" of a drop-down field; null = not grouped.
group_orderstringtitlestringdescriptionstring | nullactivebooleanpositionintegerrestricted_groupsstring (iri-reference)[]
Responses
200View resource updated400Invalid input403Forbidden404Not found422An error occurred
Example request
curl -X PATCH "https://yourcompany.chaosdesk.io/api/views/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/merge-patch+json" \
-d '{"shared":false,"conditions":"string"}' Removes the View resource.
Parameters
idstringpathrequired- View identifier
Responses
204View resource deleted403Forbidden404Not found
Example request
curl -X DELETE "https://yourcompany.chaosdesk.io/api/views/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json"