PATCH
/
v1
/
custom-field
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": [
          "<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

x-api-key
string
header
required

Enter your API key

Body

application/json

Response

200
application/json

Operation successful

The response is of type object.