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"
}
}
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"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
CustomFieldDataRequest
The body is of type object
.
The response is of type object
.