POST
/
ca
/
api
/
v1
/
custom-fields
Create Custom Field
curl --request POST \
  --url https://api.meetcampfire.com/ca/api/v1/custom-fields \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "label": "<string>",
  "field_type": "text",
  "options": "<any>",
  "is_required": true,
  "display_order": -1,
  "is_active": true
}'
{
  "id": 123,
  "app": "<string>",
  "model": "<string>",
  "name": "<string>",
  "label": "<string>",
  "field_type": "text",
  "options": "<any>",
  "is_required": true,
  "display_order": -1,
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Body

Response

201 - application/json

The response is of type object.