Instance
Billable Item
Booking
Calendar Subscription
Invoice
Quote
Invoice Template
Project
Time Activity
Custom Field
Create Custom Field
WRITE
access to the ADMIN
module is required to access this endpointPOST
/
v2
/
custom-field
Copy
curl --request POST \
--url https://api.sonderplan.com/v2/custom-field \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Booking Type",
"description": "Select the type of booking",
"type": "select",
"options": [
{
"id": "4934",
"name": "Video Editing",
"order": "2"
}
],
"module": "booking",
"order": 3,
"required": true,
"update_key": "2_1_8942"
}'
Copy
{
"success": {
"id": 1
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Custom Field object that needs to be added
The default custom field schema
Response
200
application/json
Successful Operation
The response is of type object
.
Copy
curl --request POST \
--url https://api.sonderplan.com/v2/custom-field \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Booking Type",
"description": "Select the type of booking",
"type": "select",
"options": [
{
"id": "4934",
"name": "Video Editing",
"order": "2"
}
],
"module": "booking",
"order": 3,
"required": true,
"update_key": "2_1_8942"
}'
Copy
{
"success": {
"id": 1
}
}
Assistant
Responses are generated using AI and may contain mistakes.