Skip to main content
POST
/
crm
/
objects
/
{objectName}
/
fields
/
{fieldName}
/
enum
/
{oldValue}
/
rename
Rename enum value
curl --request POST \
  --url https://www.dench.com/api/v1/crm/objects/{objectName}/fields/{fieldName}/enum/{oldValue}/rename \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "newValue": "string"
}
'
{
  "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
fieldName
string
required
oldValue
string
required

Existing option value (path).

Body

application/json
newValue
string
required

New option value; migrates entries + statuses.

Response

Successful response