Delete maintenance period
const url = 'https://example.com/api/maintenance-periods/1';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/api/maintenance-periods/1 \ --header 'Authorization: Bearer <token>'Cancels a site window that has not started. End an active window with stopMaintenance.
Token abilities: maintenance:write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The maintenance period ID
Responses
Section titled “Responses”No content
Headers
Section titled “Headers”Requests per minute allowed by the limit this response counts against.
Requests left in the current minute.
Missing, invalid, expired or session-only credentials, or a disabled user.
object
Examples
Missing or invalid token
{ "error": "Unauthenticated."}The token lacks a required ability, or the user’s role or client access does not allow this action.
object
Examples
The token lacks the ability
{ "message": "Invalid ability provided."}Not found or not visible to this token.
object
Examples
Missing or hidden
{ "message": "No query results for model [Heptapod\\Models\\Site] 12"}Domain error.
busy_try_again: A change of sites, clients or access was being saved for longer than this write waits for it; retry after Retry-After.
object
Code-specific details; may be empty.
object
Example
{ "code": "busy_try_again"}Headers
Section titled “Headers”Seconds to wait before retrying.
Rate limited: 60 requests per minute per source IP before authentication, and 60 per minute per user and per token. See Retry-After.
object
Examples
Rate limited
{ "error": "Too Many Attempts."}Headers
Section titled “Headers”Seconds to wait before retrying.
Unix time when the request limit resets. Only on request rate limits, not on refused manual runs.