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"
}
Create a new custom field for a given app and model
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"
}
Token-based authentication with required prefix "Token"
The response is of type object
.