Skip to main content
POST
Add enum value

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

Body

application/json
value
string
required

Option value to add.

color
string

Hex color for the option.

position
integer

0-based insert index; defaults to append.

Required range: -9007199254740991 <= x <= 9007199254740991

Response

Successful response

ok
boolean
required
enumValues
string[]
required
enumColors
string[]
required
inserted
boolean
required