PUT
/
v1
/
custom-fields
/
{customField}
cURL
curl --request PUT \
  --url https://api.comm.com/api/v1/custom-fields/{customField} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "key": "custom1_str"
}'
{
  "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.

Path Parameters

customField
string<uuid>
required

The custom field ID

Body

application/json

Response

200
application/json

CustomFieldResource

The response is of type object.