Unsnooze server
const url = 'https://example.com/api/servers/1/unsnooze';const options = {method: 'POST', 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 POST \ --url https://example.com/api/servers/1/unsnooze \ --header 'Authorization: Bearer <token>'Ends the snooze of a server. Openings it held are sent now if their issue is still open. Repeats are harmless. Returns only the receipt.
Token abilities: servers:snooze.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The server ID.
Responses
Section titled “Responses”The snooze receipt, snoozed_until null.
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": null}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"}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.