Skip to content

Update a custom field (v2-style merge body: updatable fields only).

Request

Security
bearerAuth and apiKeyAuth
Query
fieldNamestring

Custom field API name; mutually exclusive with id

idstring

Custom field id; mutually exclusive with fieldName

Bodyapplication/jsonrequired
valuesOptionsArray of objects(CustomFieldOption_metadata)
descriptionstring

Merged into existing field when present.

categorystring

Merged into existing field when present.

enabledboolean

Merged into existing field when present.

assetTypesArray of strings

Merged into existing field when present.

langVsTranslatedFieldValuesobject

Merged into existing field when present.

curl -i -X PUT \
  'https://api3.sprinklr.com/prod/api/v3/customField?fieldName=string&id=string' \
  -H 'Authorization: Bearer <YOUR_Token_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Key: YOUR_API_KEY_HERE' \
  -d '{
    "valuesOptions": [
      {
        "langVsTranslatedFieldValues": {
          "property1": {
            "property1": "string",
            "property2": "string"
          },
          "property2": {
            "property1": "string",
            "property2": "string"
          }
        },
        "serialVersionUID": {},
        "label": "string",
        "value": "string",
        "category": "string",
        "additional": {
          "property1": "string",
          "property2": "string"
        }
      }
    ],
    "description": "string",
    "category": "string",
    "enabled": true,
    "assetTypes": [
      "string"
    ],
    "langVsTranslatedFieldValues": {
      "property1": {
        "property1": "string",
        "property2": "string"
      },
      "property2": {
        "property1": "string",
        "property2": "string"
      }
    }
  }'

Responses

Success

Bodyapplication/json
string(AssigneeType)
Response
"string"