DELETE Remove a private maintenance schedule
/api/v1/maintenance-schedules/{id}
Private one-time or weekly maintenance. Telemetry and alarm states continue; deliveries are suppressed. IANA gaps are skipped and repeated times use their first occurrence. Disabled schedules consume one of 20 slots. Edits preserve past coverage; group changes take effect going forward. Public notices require a separate draft and status page publication permission.
On this page
Access and permissions
Private one-time or weekly maintenance. Telemetry and alarm states continue; deliveries are suppressed. IANA gaps are skipped and repeated times use their first occurrence. Disabled schedules consume one of 20 slots. Edits preserve past coverage; group changes take effect going forward. Public notices require a separate draft and status page publication permission.
Browser session: __Host-mb_session cookie.
Machine management credentials in Authorization: Bearer. Check the permissions (scopes) required by the operation.
When using a browser session for a mutation, send the current CSRF token in X-CSRF-Token with the same-site cookie. OAuth consent uses its documented form field.
Parameters and headers
| Field | Location | Type and limits | Required | Meaning |
|---|---|---|---|---|
| id | Path | string; {"format":"uuid"} | Yes | Resource ID in this workspace |
| Idempotency-Key | Header | string; {"maxLength":128,"minLength":16,"pattern":"^[A-Za-z0-9._~-]{16,128}$"} | No | Private one-time or weekly maintenance. Telemetry and alarm states continue; deliveries are suppressed. IANA gaps are skipped and repeated times use their first occurrence. Disabled schedules consume one of 20 slots. Edits preserve past coverage; group changes take effect going forward. Public notices require a separate draft and status page publication permission. |
Request body
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | object | Yes | — |
| $.expected_revision | integer; {"minimum":1} | Yes | — |
Responses
application/json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | object | Yes | — |
| $.status | string; {"const":"deleted"} | Yes | — |
{
"status": "deleted"
}| Stable error codes |
|---|
| unauthorized |
| invalid_credential |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
| Stable error codes |
|---|
| forbidden |
| csrf |
| insufficient_scope |
| workspace_scope |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
| Stable error codes |
|---|
| not_found |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
| Stable error codes |
|---|
| idempotency_conflict |
| revision_conflict |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
| Stable error codes |
|---|
| invalid_dashboard |
| invalid_dashboard_sources |
| invalid_idempotency_key |
| invalid_maintenance |
| invalid_maintenance_targets |
| invalid_reference |
| invalid_workspace |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
| Stable error codes |
|---|
| dashboard_limit |
| maintenance_limit |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
| Stable error codes |
|---|
| unavailable |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
Retries and asynchronous work
This change does not have a general retry guarantee. If the response is unclear, read the affected resource before trying again. Follow Retry-After waiting times and request new sign-in or action codes when they expire.
Request examples
Replace demo IDs, timestamps and placeholders with your own values. For a retry, keep the same IDs, time and content. These examples do not run requests on this page.
Keep login links, codes, cookies and keys private. Do not print them in logs or share them in support requests.
curl --fail-with-body --request DELETE --header @"$HOME/.config/metribeacon/headers.txt" --header 'Content-Type: application/json' --header 'Idempotency-Key: maintenance-example-key' --data-binary '{"expected_revision":1}' "https://metribeacon.com/api/v1/maintenance-schedules/00000000-0000-4000-8000-000000000001"
import json, os, urllib.request
request = urllib.request.Request('https://metribeacon.com/api/v1/maintenance-schedules/00000000-0000-4000-8000-000000000001', method='DELETE', headers={"Cookie": os.environ["MB_COOKIE"], "X-CSRF-Token": os.environ["MB_CSRF"], "Content-Type": "application/json", "Idempotency-Key": "maintenance-example-key"}, data=json.dumps({'expected_revision': 1}).encode())
with urllib.request.urlopen(request, timeout=30) as response:
print(json.load(response))
const response = await fetch("https://metribeacon.com/api/v1/maintenance-schedules/00000000-0000-4000-8000-000000000001", {method: "DELETE", headers: {"Cookie": process.env.MB_COOKIE, "X-CSRF-Token": process.env.MB_CSRF, "Content-Type": "application/json", "Idempotency-Key": "maintenance-example-key"}, body: JSON.stringify({"expected_revision": 1}), signal: AbortSignal.timeout(30000)});
console.log(await response.json());
package main
import ("fmt"; "net/http"; "os"; "io"; "strings"; "time")
func main() {
req, err := http.NewRequest("DELETE", "https://metribeacon.com/api/v1/maintenance-schedules/00000000-0000-4000-8000-000000000001", strings.NewReader("{\"expected_revision\":1}")); if err != nil { panic(err) }; req.Header.Set("Cookie", os.Getenv("MB_COOKIE")); req.Header.Set("X-CSRF-Token", os.Getenv("MB_CSRF")); req.Header.Set("Content-Type", "application/json"); req.Header.Set("Idempotency-Key", "maintenance-example-key"); client := &http.Client{Timeout:30*time.Second}; response, err := client.Do(req); if err != nil { panic(err) }; defer response.Body.Close(); _, _ = io.Copy(os.Stdout, response.Body); fmt.Println()
}
Related guides
- HTTP API, OAuth and MCP
Find the user API endpoints, their permissions, fields, examples and response formats.
- PUT Save a private maintenance schedule
Private one-time or weekly maintenance. Telemetry and alarm states continue; deliveries are suppressed. IANA gaps are skipped and repeated times use their first occurrence. Disabled schedules consume one of 20 slots. Edits preserve past coverage; group changes take effect going forward. Public notices require a separate draft and status page publication permission.
- GET List workspace maintenance
Private one-time or weekly maintenance. Telemetry and alarm states continue; deliveries are suppressed. IANA gaps are skipped and repeated times use their first occurrence. Disabled schedules consume one of 20 slots. Edits preserve past coverage; group changes take effect going forward. Public notices require a separate draft and status page publication permission.
- POST Create a private maintenance schedule
Private one-time or weekly maintenance. Telemetry and alarm states continue; deliveries are suppressed. IANA gaps are skipped and repeated times use their first occurrence. Disabled schedules consume one of 20 slots. Edits preserve past coverage; group changes take effect going forward. Public notices require a separate draft and status page publication permission.