Skip to main content
PUT
/
crm
/
objects
/
{objectName}
/
statuses
Set statuses
curl --request PUT \
  --url https://www.dench.com/api/v1/crm/objects/{objectName}/statuses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "statuses": [
    {
      "name": "New",
      "color": "#94a3b8"
    },
    {
      "name": "Working",
      "color": "#3b82f6"
    },
    {
      "name": "Qualified",
      "color": "#22c55e",
      "isDefault": true
    }
  ]
}
'
{
  "error": {
    "message": "<string>",
    "type": "<string>",
    "code": "<string>",
    "details": "<unknown>"
  }
}

Authorizations

Authorization
string
header
required

Workspace-scoped Dench API key from workspace settings. This is the same key used by DENCH_API_KEY in sandboxes.

Path Parameters

objectName
string
required

Body

application/json
statuses
object[]
required

Response

Successful response