curl --request PATCH \
--url https://platform.thena.ai/v1/custom-field \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"fields": [
{
"fieldId": "<string>",
"version": 123,
"updates": {
"name": "<string>",
"description": "<string>",
"isActive": true,
"options": [
{
"value": "<string>"
}
],
"placeholderText": "<string>",
"hintText": "<string>",
"defaultValue": "<string>",
"regexForValidation": "<string>",
"mandatoryOnCreation": true,
"mandatoryOnClose": true,
"visibleToCustomer": true,
"editableByCustomer": true,
"autoAddToAllForms": true
}
}
]
}'
{
"data": [
{
"name": "<string>",
"uid": "<string>",
"slug": "<string>",
"organizationId": "<string>",
"source": "ticket",
"fieldType": "single_line",
"options": [
"<string>"
],
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"isActive": true,
"teamId": "<string>",
"autoAddToAllForms": true,
"hintText": "<string>",
"placeholderText": "<string>",
"mandatoryOnCreation": true,
"mandatoryOnClose": true,
"visibleToCustomer": true,
"editableByCustomer": true,
"defaultValue": "<string>"
}
],
"status": true,
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
curl --request PATCH \
--url https://platform.thena.ai/v1/custom-field \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"fields": [
{
"fieldId": "<string>",
"version": 123,
"updates": {
"name": "<string>",
"description": "<string>",
"isActive": true,
"options": [
{
"value": "<string>"
}
],
"placeholderText": "<string>",
"hintText": "<string>",
"defaultValue": "<string>",
"regexForValidation": "<string>",
"mandatoryOnCreation": true,
"mandatoryOnClose": true,
"visibleToCustomer": true,
"editableByCustomer": true,
"autoAddToAllForms": true
}
}
]
}'
{
"data": [
{
"name": "<string>",
"uid": "<string>",
"slug": "<string>",
"organizationId": "<string>",
"source": "ticket",
"fieldType": "single_line",
"options": [
"<string>"
],
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"isActive": true,
"teamId": "<string>",
"autoAddToAllForms": true,
"hintText": "<string>",
"placeholderText": "<string>",
"mandatoryOnCreation": true,
"mandatoryOnClose": true,
"visibleToCustomer": true,
"editableByCustomer": true,
"defaultValue": "<string>"
}
],
"status": true,
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
Enter your API key
Operation successful
The response is of type object
.