Schedule maintenance
/workspaces/{workspace}/status/maintenanceSchedules a maintenance window. Times are sent as local wall-clock times in the time zone you choose and stored in UTC.
Authentication
Send an API token as a bearer token. This endpoint needs a read and write token, made by an editor, admin or owner. Create one in My account → API tokens; see scopes and roles.
Authorization: Bearer 42|bynh_pat_•••••••HeaderPath parameters
workspacestringRequiredYour workspace slug, e.g. dokan.
Request body
application/jsontitlestringRequiredmax 160“Name the work, like “Database upgrade”.”
bodystring, nullablemax 5000Details.
starts_atstringRequiredY-m-d\TH:i (e.g. 2026-10-16T02:00)Local wall-clock time in
timezone; must be in the future.ends_atstringRequiredY-m-d\TH:iAfter starts_at, at most 7 days later.
timezonestringRequiredAny PHP time zone identifier, e.g. Asia/Riyadh.
component_idsstringRequired1–50 distinct components of this workspace.
notify_subscribersbooleanRequiredEmail subscribers about this window.
notify_nowbooleandefault falseAnnounce it now (only if notify_subscribers).
notify_day_beforebooleandefault truenotify_startbooleandefault truenotify_endbooleandefault truepause_alertsbooleandefault true
Response
201 CreatedThe window.
idintegerWindow id.titlestringTitle.bodystring|nullDetails.starts_atstringUTC, ISO 8601.ends_atstringUTC, ISO 8601.timezonestringZone the times were entered in.duration_minutesintegerLength.statusenumStage. One ofscheduled,in_progress,completed,cancelled.status_labelstringLocalized.notify_subscribersbooleanMaster switch for subscriber emails.notify_nowbooleanAnnounce when scheduled.notify_day_beforebooleanRemind the day before.notify_startbooleanEmail at start.notify_endbooleanEmail at end.pause_alertsbooleanDon’t alert on affected monitors during the window.components[]{id, name}Affected components.
Rate limits
This endpoint counts toward your general limit of 120 requests a minute. When you go over, wait for the number of seconds in Retry-After.
Errors
Every error is JSON with a message. See Errors.