Contextual workspaces
Contextual workspaces: 5 operations of the ChaosDesk REST API.
- GET
/api/contextual_workspacesRetrieves the collection of ContextualWorkspace resources. - POST
/api/contextual_workspacesCreates a ContextualWorkspace resource. - GET
/api/contextual_workspaces/{id}Retrieves a ContextualWorkspace resource. - PATCH
/api/contextual_workspaces/{id}Updates the ContextualWorkspace resource. - DELETE
/api/contextual_workspaces/{id}Removes the ContextualWorkspace resource.
Retrieves the collection of ContextualWorkspace resources.
Responses
200ContextualWorkspace collection403Forbidden
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/contextual_workspaces" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Creates a ContextualWorkspace resource.
POST/api/contextual_workspaces
Request body application/json
conditionsobjectmacrosMacro[]- Shared macros offered in this workspace (personal macros always show).
ticket_formstring | null (iri-reference)- Ticket form whose field layout the workspace shows; null = the ticket's own form.
appsstring[]- Sidebar app keys shown in this workspace (empty = all installed apps).
titlestringrequireddescriptionstring | nullactivebooleanpositioninteger
Responses
201ContextualWorkspace resource created400Invalid input403Forbidden422An error occurred
Example request
curl -X POST "https://yourcompany.chaosdesk.io/api/contextual_workspaces" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"title":"string"}' Retrieves a ContextualWorkspace resource.
GET/api/contextual_workspaces/{id}
Parameters
idstringpathrequired- ContextualWorkspace identifier
Responses
200ContextualWorkspace resource403Forbidden404Not found
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/contextual_workspaces/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Updates the ContextualWorkspace resource.
PATCH/api/contextual_workspaces/{id}
Parameters
idstringpathrequired- ContextualWorkspace identifier
Request body application/merge-patch+json
conditionsobjectmacrosMacro[]- Shared macros offered in this workspace (personal macros always show).
ticket_formstring | null (iri-reference)- Ticket form whose field layout the workspace shows; null = the ticket's own form.
appsstring[]- Sidebar app keys shown in this workspace (empty = all installed apps).
titlestringdescriptionstring | nullactivebooleanpositioninteger
Responses
200ContextualWorkspace resource updated400Invalid input403Forbidden404Not found422An error occurred
Example request
curl -X PATCH "https://yourcompany.chaosdesk.io/api/contextual_workspaces/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/merge-patch+json" \
-d '{"conditions":"string","macros":"string"}' Removes the ContextualWorkspace resource.
DELETE/api/contextual_workspaces/{id}
Parameters
idstringpathrequired- ContextualWorkspace identifier
Responses
204ContextualWorkspace resource deleted403Forbidden404Not found
Example request
curl -X DELETE "https://yourcompany.chaosdesk.io/api/contextual_workspaces/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json"