POST
/
v1
/
custom-field
curl --request POST \
  --url https://platform.thena.ai/v1/custom-field \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "isActive": true,
  "description": "<string>",
  "name": "<string>",
  "source": "<string>",
  "fieldType": "<string>",
  "options": [
    "<string>"
  ],
  "metadata": {},
  "placeholderText": "<string>",
  "hintText": "<string>",
  "mandatoryOnClose": true,
  "mandatoryOnCreation": true,
  "visibleToCustomer": true,
  "editableByCustomer": true,
  "autoAddToAllForms": true,
  "defaultValue": "<string>",
  "teamId": "<string>",
  "lookup": "<string>"
}'
{
  "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

201
application/json

Operation successful

The response is of type object.