Skip to main content
POST
/
crm
/
objects
/
{objectName}
/
fields
/
{fieldName}
/
enum
/
{value}
/
color
Set enum color
curl --request POST \
  --url https://www.dench.com/api/v1/crm/objects/{objectName}/fields/{fieldName}/enum/{value}/color \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "color": "#22c55e"
}
'
{
  "ok": true,
  "enumColors": [
    "<string>"
  ]
}

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
fieldName
string
required
value
string
required

Body

application/json
color
string
required

Hex color, e.g. #22c55e.

Response

Successful response

ok
boolean
required
enumColors
string[]
required