POST
/
v1
/
custom-fields
cURL
curl --request POST \
  --url https://api.comm.com/api/v1/custom-fields \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "type": "string",
  "description": "<string>",
  "resource": "contact"
}'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "key": "<string>",
    "type": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

CustomFieldDataRequest

The body is of type object.

Response

201
application/json

The response is of type object.