BlockedTimePresets
Create a blocked-time preset
Creates a new BlockedTimePreset at the given site. Only name is required; the remaining fields configure the defaults that pre-fill a BlockedTime created from this preset.
Requires the SETTINGS_MANAGE permission on the site.
post/shop/blocked-time-presets
Query parameters
site_idstring required
Filter results by the site they belong to
Request body
Example request
{
"name": "Lunch break",
"duration": 30,
"label": "Lunch",
"notes": "Cover the front desk with reception.",
"color": "#ff8800"
}Response
A single BlockedTimePreset.
Example response
{
"data": {
"id": "65f1234567890abcdef12345",
"name": "Lunch break",
"duration": 30,
"type": "break",
"label": "Lunch",
"color": "#ff8800"
}
}