POST
/
v1
/
custom-object
/
{customObjectId}
/
fields
/
{fieldId}
curl --request POST \
  --url https://platform.thena.ai/v1/custom-object/{customObjectId}/fields/{fieldId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "fieldId": "<string>",
  "parentObjectId": "<string>",
  "relationshipType": "<string>",
  "defaultValue": "<string>"
}'
{
  "status": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Path Parameters

customObjectId
string
required
fieldId
string
required

Body

application/json
fieldId
string

The id of the field to add

parentObjectId
string

The id of the parent object to add

relationshipType
string

The relationship type of the field to add

defaultValue
string

The default value of the field to add

Response

201
application/json
Operation successful
status
boolean
required
message
string
required