Create a case status

POST /api/v1/cases-status

Headers

application/json

Body Required

  • name string Required

    The name of the status.

  • colour string

    The colour of the status.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • uuid string

      The UUID of the resource.

    • The timestamp of when the resource was created.

    • The timestamp of when the resource was updated.

    • name string

      The name of the status.

    • colour string

      The colour of the status.

    • position integer

      The position of the status.

POST /api/v1/cases-status
curl \
 -X POST https://api.plannrcrm.com/api/v1/cases-status \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json" \
 -d '{"name":"In Progress","colour":"#23852B"}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json

# Payload
{
  "name": "In Progress",
  "colour": "#23852B"
}
Response examples (200)
{
  "name": "To Be Reviewed",
  "uuid": "c288dbac-0265-4b32-9da9-1b7c2385e9a1",
  "colour": "#23852B",
  "position": 5,
  "created_at": "2024-11-20T13:24:01+00:00",
  "updated_at": "2024-11-20T13:24:01+00:00"
}