Snooze server
const url = 'https://example.com/api/servers/1/snooze';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"snooze_until":"2026-10-01T08:30:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/servers/1/snooze \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "snooze_until": "2026-10-01T08:30:00Z" }'Holds the alerts of a server until snooze_until, or for minutes (at most 525600), and replaces an active snooze; for example around a deploy or a reboot. Prefer snooze_until: a retry sets the same end. Issues keep opening and resolving; an opening is sent when the snooze ends if its issue is still open. Returns only the receipt (id, snoozed_until): servers:snooze alone reads no server details.
Token abilities: servers:snooze.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The server ID.
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”The snooze receipt.
The snooze receipt: only the server id and the snooze end, no server details.
object
Alerts wait until then; null once the snooze has ended.
Example
{ "id": 1, "snoozed_until": "2026-10-01T08:30:00+00:00"}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"}Invalid input.
object
Field name => messages.
object
Examples
Invalid input
{ "errors": { "starts_at": [ "The starts at field must match the format Y-m-d H:i." ] }, "message": "The starts at field must match the format Y-m-d H:i."}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.