Skip to content

Partial update (picklist options and/or PUT-merge fields).

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)
addedValuesOptionsArray of objects(CustomFieldOption_metadata)
removedValuesOptionsobject

Unresolved type (LinkedHashSet)

descriptionstring
categorystring
enabledboolean
assetTypesArray of strings
langVsTranslatedFieldValuesobject
curl -i -X PATCH \
  '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"
        }
      }
    ],
    "addedValuesOptions": [
      {
        "langVsTranslatedFieldValues": {
          "property1": {
            "property1": "string",
            "property2": "string"
          },
          "property2": {
            "property1": "string",
            "property2": "string"
          }
        },
        "serialVersionUID": {},
        "label": "string",
        "value": "string",
        "category": "string",
        "additional": {
          "property1": "string",
          "property2": "string"
        }
      }
    ],
    "removedValuesOptions": {},
    "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"