Organization fields
Organization fields: 5 operations of the ChaosDesk REST API.
- GET
/api/organization_fieldsRetrieves the collection of OrganizationField resources. - POST
/api/organization_fieldsCreates a OrganizationField resource. - GET
/api/organization_fields/{id}Retrieves a OrganizationField resource. - PATCH
/api/organization_fields/{id}Updates the OrganizationField resource. - DELETE
/api/organization_fields/{id}Removes the OrganizationField resource.
Retrieves the collection of OrganizationField resources.
Responses
200OrganizationField collection403Forbidden
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/organization_fields" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Creates a OrganizationField resource.
Request body application/json
keystring- Stable machine key used in rules, search, import and the API (
user_fields.{key}). titlestringrequiredtype"text" | "textarea" | "dropdown" | "multiselect" | "date" | "integer" | "decimal" | "checkbox" | "regex" | "credit_card" | "lookup" | "currency"descriptionstring | nullactivebooleanpositionintegerregex_patternstring | nulloptionsobject[]- options for dropdown/multiselect
Responses
201OrganizationField resource created400Invalid input403Forbidden422An error occurred
Example request
curl -X POST "https://yourcompany.chaosdesk.io/api/organization_fields" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"title":"string"}' Retrieves a OrganizationField resource.
GET/api/organization_fields/{id}
Parameters
idstringpathrequired- OrganizationField identifier
Responses
200OrganizationField resource403Forbidden404Not found
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/organization_fields/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Updates the OrganizationField resource.
PATCH/api/organization_fields/{id}
Parameters
idstringpathrequired- OrganizationField identifier
Request body application/merge-patch+json
titlestringdescriptionstring | nullactivebooleanpositionintegerregex_patternstring | nulloptionsobject[]- options for dropdown/multiselect
Responses
200OrganizationField resource updated400Invalid input403Forbidden404Not found422An error occurred
Example request
curl -X PATCH "https://yourcompany.chaosdesk.io/api/organization_fields/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/merge-patch+json" \
-d '{"title":"string","description":"string"}' Removes the OrganizationField resource.
DELETE/api/organization_fields/{id}
Parameters
idstringpathrequired- OrganizationField identifier
Responses
204OrganizationField resource deleted403Forbidden404Not found
Example request
curl -X DELETE "https://yourcompany.chaosdesk.io/api/organization_fields/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json"