The Availability Of Slots object
Attributes
Unique identifier for the object.
{
"id": "availability-of-slots_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"day_of_week": "day_of_week_example",
"from_time": "from_time_example",
"to_time": "to_time_example"
} /api/crm/availability-of-slots?parent_id={id} List availability of slotss by parent
Returns all availability of slotss belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of availability of slots objects belonging to the parent.
curl https://api.overplane.dev/api/crm/availability-of-slots?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "availability-of-slots_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"day_of_week": "day_of_week_example",
"from_time": "from_time_example",
"to_time": "to_time_example"
}
],
"has_more": false,
"total": 1
} /api/crm/availability-of-slots Create a availability of slots
Creates a new availability of slots object.
Body parameters
Returns
Returns the newly created availability of slots object if the call succeeded.
curl https://api.overplane.dev/api/crm/availability-of-slots \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"day_of_week":"day_of_week_example","from_time":"from_time_example","to_time":"to_time_example"}' {
"id": "availability-of-slots_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"day_of_week": "day_of_week_example",
"from_time": "from_time_example",
"to_time": "to_time_example"
} /api/crm/availability-of-slots/{id} Update a availability of slots
Updates the specified availability of slots by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the availability of slots to update.
Body parameters
Returns
Returns the updated availability of slots object.
curl https://api.overplane.dev/api/crm/availability-of-slots/availability-of-slots_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "availability-of-slots_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"day_of_week": "day_of_week_example",
"from_time": "from_time_example",
"to_time": "to_time_example"
} /api/crm/availability-of-slots/{id} Delete a availability of slots
Permanently deletes a availability of slots. This cannot be undone.
Path parameters
The identifier of the availability of slots to delete.
Returns
Returns a confirmation that the availability of slots has been deleted.
curl https://api.overplane.dev/api/crm/availability-of-slots/availability-of-slots_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "availability-of-slots_abc123",
"deleted": true
} /api/crm/availability-of-slots/reorder Reorder availability of slotss
Updates the sort order of availability of slotss within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/crm/availability-of-slots/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "availability-of-slots_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"day_of_week": "day_of_week_example",
"from_time": "from_time_example",
"to_time": "to_time_example"
}