PATCH
/
v1
/
custom-field
curl --request PATCH \
  --url https://platform.thena.ai/v1/custom-field \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "fields": [
    {
      "fieldId": "<string>",
      "version": 123,
      "updates": {
        "name": "<string>",
        "description": "<string>",
        "isActive": true,
        "options": [
          "<string>"
        ],
        "placeholderText": "<string>",
        "hintText": "<string>",
        "defaultValue": "<string>",
        "regexForValidation": "<string>",
        "mandatoryOnCreation": true,
        "mandatoryOnClose": true,
        "visibleToCustomer": true,
        "editableByCustomer": true,
        "autoAddToAllForms": true
      }
    }
  ]
}'
{
  "data": [
    {
      "name": "<string>",
      "uid": "<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"
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Body

application/json
fields
object[]
required

Response

200
application/json
Operation successful
data
object[]
required
status
boolean
required
message
string
required
timestamp
string
required