Update a case status

PUT /api/v1/cases-status/{id}

Path parameters

  • id string Required

    The ID of the cases status.

application/json

Body

  • name string

    The name of the status.

  • colour string

    The colour of the status.

  • position integer

    The position 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.

PUT /api/v1/cases-status/{id}
curl \
 -X PUT https://api.plannrcrm.com/api/v1/cases-status/id \
 -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","position":5}'
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",
  "position": 5
}
Response examples (200)
{
  "name": "To Be Reviewed",
  "uuid": "50ac1b5c-340e-47e6-9803-26d948e95329",
  "colour": "#23852B",
  "position": 5,
  "created_at": "2024-10-16T11:10:14+01:00",
  "updated_at": "2024-10-16T11:10:14+01:00"
}