v1
latestSwagger 2.02026-08-06115129197.7 KBBlockages
Create a blockage
Creates a one-off or recurring blockage. Reference the location and (optional) employee by MyTime id or partner/external id. Include a schedule to make the blockage recurring.
post/blockages
Headers
X-Subdomainstring
Merchant subdomain - Optional
Request body
Example request
{
"location_id": 0,
"employee_id": 0,
"begin_at": "2026-07-10T12:09:28.048Z",
"end_at": "2026-07-10T12:09:28.048Z",
"title": "string",
"description": "string",
"blockage_type": "string",
"resource_id": 0,
"schedule": {
"frequency_interval": 1,
"interval_datatype": "days",
"end_date": "2026-12-31",
"interval_extra": {}
}
}Response
Created
Example response
{
"blockage": {
"schedule": {
"frequency_interval": 1,
"interval_datatype": "weeks",
"end_date": "2026-12-31"
}
}
}