Cancel maintenance
POST
/workspaces/{workspace}/status/maintenance/{maintenance}/cancelCancels a window that hasn’t started. If subscribers were already told about it, they’re emailed that it’s off.
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.
maintenanceintegerRequiredWindow id.
Response
200 OKThe 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
401The token is missing, wrong, revoked or expired.
403The token is read-only (message: “This token is read-only. Create a read and write token to make changes.”). Or: The token’s owner is a viewer (“Viewers can read everything but can’t change it.”), or the workspace’s editing is paused (a billing message, e.g. “Your trial has ended, so editing is paused. …”).
404The token belongs to another workspace, or its owner is no longer a member.
422{"message": "Only a window that hasn’t started can be cancelled."} (no errors object).
Every error is JSON with a message. See Errors.