- Create a custom field (same request body as API v2).
Fetch custom field by field name or by id.
Update a custom field (v2-style merge body: updatable fields only).
Partial update (picklist options and/or PUT-merge fields).
Create a custom field (sa...
Security
bearerAuth and apiKeyAuth
Custom field options for a picklist or multi picklist field with language translation support
- Production Serverhttps://api3.sprinklr.com/prod/api/v3/customField
- Mock serverhttps://developer.sprinklr.com/_mock/apis/sprinklr-v3/customField
curl -i -X POST \
https://api3.sprinklr.com/prod/api/v3/customField \
-H 'Authorization: Bearer <YOUR_Token_HERE>' \
-H 'Content-Type: application/json' \
-H 'Key: YOUR_API_KEY_HERE' \
-d '{
"id": "string",
"fieldName": "string",
"label": "string",
"description": "string",
"assetTypes": [
"string"
],
"type": "string",
"values": [
{
"key": "string",
"label": "string"
}
],
"valuesOptions": [
{
"label": "string",
"value": "string",
"langVsTranslatedFieldValues": {
"property1": {
"property1": "string",
"property2": "string"
},
"property2": {
"property1": "string",
"property2": "string"
}
}
}
],
"category": "string",
"enabled": true,
"visibility": {
"globallyVisible": true,
"visibilityConfig": [
{
"type": "string",
"ids": [
"string"
]
}
]
},
"permissions": [
{
"spaceType": "string",
"spaceId": "string",
"permissionConfigs": [
{
"type": "string",
"ids": [
"string"
],
"permissions": [
"string"
]
}
]
}
],
"optionType": "string",
"optionKey": "string",
"createdTime": 0,
"modifiedTime": 0,
"customFieldControllerById": {
"property1": {
"enableReverseMapping": true,
"controllingValues": [
"string"
],
"controllingFieldConfig": {
"property1": [
"string"
],
"property2": [
"string"
]
}
},
"property2": {
"enableReverseMapping": true,
"controllingValues": [
"string"
],
"controllingFieldConfig": {
"property1": [
"string"
],
"property2": [
"string"
]
}
}
},
"langVsTranslatedFieldValues": {
"property1": {
"property1": "string",
"property2": "string"
},
"property2": {
"property1": "string",
"property2": "string"
}
}
}'Success
Custom field options for a picklist or multi picklist field with language translation support
Response
{ "id": "string", "fieldName": "string", "label": "string", "description": "string", "assetTypes": [ "string" ], "type": "string", "values": [ { … } ], "valuesOptions": [ { … } ], "category": "string", "enabled": true, "visibility": { "globallyVisible": true, "visibilityConfig": [ … ] }, "permissions": [ { … } ], "optionType": "string", "optionKey": "string", "createdTime": 0, "modifiedTime": 0, "customFieldControllerById": { "property1": { … }, "property2": { … } }, "langVsTranslatedFieldValues": { "property1": { … }, "property2": { … } } }