Skip to content

Snooze server

POST
/servers/{server}/snooze
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.

server
required
integer

The server ID.

Media typeapplication/json
One of:
object
minutes
required

Positive integer or digit-only string, at most 525600.

integer | string

Example

{
"snooze_until": "2026-10-01T08:30:00Z"
}

The snooze receipt.

Media typeapplication/json
ServerSnooze

The snooze receipt: only the server id and the snooze end, no server details.

object
id
required
integer
snoozed_until
required

Alerts wait until then; null once the snooze has ended.

string | null format: date-time

Example

{
"id": 1,
"snoozed_until": "2026-10-01T08:30:00+00:00"
}
X-RateLimit-Limit
integer

Requests per minute allowed by the limit this response counts against.

X-RateLimit-Remaining
integer

Requests left in the current minute.

Missing, invalid, expired or session-only credentials, or a disabled user.

Media typeapplication/json
Unauthenticated
object
error
required
string

Examples

ExampleUnauthenticated

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.

Media typeapplication/json
ErrorMessage
object
message
required
string

Examples

ExampleForbidden

The token lacks the ability

{
"message": "Invalid ability provided."
}

Not found or not visible to this token.

Media typeapplication/json
ErrorMessage
object
message
required
string

Examples

ExampleNotFound

Missing or hidden

{
"message": "No query results for model [Heptapod\\Models\\Site] 12"
}

Invalid input.

Media typeapplication/json
ValidationError
object
errors
required

Field name => messages.

object
key
additional properties
Array<string>
message
required
string

Examples

ExampleValidationFailed

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.

Media typeapplication/json
TooManyRequests
object
error
required
string

Examples

ExampleTooManyRequests

Rate limited

{
"error": "Too Many Attempts."
}
Retry-After
integer

Seconds to wait before retrying.

X-RateLimit-Reset
integer

Unix time when the request limit resets. Only on request rate limits, not on refused manual runs.