Snooze Incident
curl --request POST \
--url http://{host}:{port}/{basePath}/incidents/{name}/snooze \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"duration": "30m",
"reason": "Deploy in progress, will revisit after rollout completes.",
"snoozedBy": "carlos.silva@empresa.com"
}
'import requests
url = "http://{host}:{port}/{basePath}/incidents/{name}/snooze"
payload = {
"duration": "30m",
"reason": "Deploy in progress, will revisit after rollout completes.",
"snoozedBy": "carlos.silva@empresa.com"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
duration: '30m',
reason: 'Deploy in progress, will revisit after rollout completes.',
snoozedBy: 'carlos.silva@empresa.com'
})
};
fetch('http://{host}:{port}/{basePath}/incidents/{name}/snooze', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{host}:{port}/{basePath}/incidents/{name}/snooze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'duration' => '30m',
'reason' => 'Deploy in progress, will revisit after rollout completes.',
'snoozedBy' => 'carlos.silva@empresa.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://{host}:{port}/{basePath}/incidents/{name}/snooze"
payload := strings.NewReader("{\n \"duration\": \"30m\",\n \"reason\": \"Deploy in progress, will revisit after rollout completes.\",\n \"snoozedBy\": \"carlos.silva@empresa.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://{host}:{port}/{basePath}/incidents/{name}/snooze")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"duration\": \"30m\",\n \"reason\": \"Deploy in progress, will revisit after rollout completes.\",\n \"snoozedBy\": \"carlos.silva@empresa.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/incidents/{name}/snooze")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"duration\": \"30m\",\n \"reason\": \"Deploy in progress, will revisit after rollout completes.\",\n \"snoozedBy\": \"carlos.silva@empresa.com\"\n}"
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "Incident",
"metadata": {
"name": "INC-20260319-001",
"namespace": "production"
},
"status": {
"state": "Analyzing",
"snoozed": true,
"snoozedBy": "carlos.silva@empresa.com",
"snoozedAt": "2026-03-19T15:35:00Z",
"snoozeUntil": "2026-03-19T16:05:00Z",
"snoozeReason": "Deploy em andamento, verificar apos conclusao"
}
}
Incidents
Snooze Incident
Snoozes notifications for an incident for a specified duration
POST
/
incidents
/
{name}
/
snooze
Snooze Incident
curl --request POST \
--url http://{host}:{port}/{basePath}/incidents/{name}/snooze \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"duration": "30m",
"reason": "Deploy in progress, will revisit after rollout completes.",
"snoozedBy": "carlos.silva@empresa.com"
}
'import requests
url = "http://{host}:{port}/{basePath}/incidents/{name}/snooze"
payload = {
"duration": "30m",
"reason": "Deploy in progress, will revisit after rollout completes.",
"snoozedBy": "carlos.silva@empresa.com"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
duration: '30m',
reason: 'Deploy in progress, will revisit after rollout completes.',
snoozedBy: 'carlos.silva@empresa.com'
})
};
fetch('http://{host}:{port}/{basePath}/incidents/{name}/snooze', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{host}:{port}/{basePath}/incidents/{name}/snooze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'duration' => '30m',
'reason' => 'Deploy in progress, will revisit after rollout completes.',
'snoozedBy' => 'carlos.silva@empresa.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://{host}:{port}/{basePath}/incidents/{name}/snooze"
payload := strings.NewReader("{\n \"duration\": \"30m\",\n \"reason\": \"Deploy in progress, will revisit after rollout completes.\",\n \"snoozedBy\": \"carlos.silva@empresa.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://{host}:{port}/{basePath}/incidents/{name}/snooze")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"duration\": \"30m\",\n \"reason\": \"Deploy in progress, will revisit after rollout completes.\",\n \"snoozedBy\": \"carlos.silva@empresa.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/incidents/{name}/snooze")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"duration\": \"30m\",\n \"reason\": \"Deploy in progress, will revisit after rollout completes.\",\n \"snoozedBy\": \"carlos.silva@empresa.com\"\n}"
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "Incident",
"metadata": {
"name": "INC-20260319-001",
"namespace": "production"
},
"status": {
"state": "Analyzing",
"snoozed": true,
"snoozedBy": "carlos.silva@empresa.com",
"snoozedAt": "2026-03-19T15:35:00Z",
"snoozeUntil": "2026-03-19T16:05:00Z",
"snoozeReason": "Deploy em andamento, verificar apos conclusao"
}
}
string
required
Unique incident name (e.g.,
INC-20260319-001)string
required
Snooze duration in Go duration format (e.g.,
30m, 1h, 2h30m)string
required
Reason for snoozing the incident
string
required
Identifier of the user snoozing the incident
{
"apiVersion": "v1",
"kind": "Incident",
"metadata": {
"name": "INC-20260319-001",
"namespace": "production"
},
"status": {
"state": "Analyzing",
"snoozed": true,
"snoozedBy": "carlos.silva@empresa.com",
"snoozedAt": "2026-03-19T15:35:00Z",
"snoozeUntil": "2026-03-19T16:05:00Z",
"snoozeReason": "Deploy em andamento, verificar apos conclusao"
}
}
{
"apiVersion": "v1",
"kind": "Error",
"error": {
"code": 400,
"message": "Invalid duration",
"details": "The 'duration' field must be in Go duration format (e.g., 30m, 1h, 2h30m). Maximum: 24h"
}
}
Authorizations
Bearer token issued by the operator. Format: Authorization: Bearer <token>.
Path Parameters
Unique incident name.
Example:
"INC-20260319-001"
Body
application/json
Snooze duration in Go duration format (e.g. 30m, 1h, 2h30m). Max 24h.
Example:
"30m"
Reason for snoozing.
Example:
"Deploy in progress, will revisit after rollout completes."
User identifier snoozing the incident.
Example:
"carlos.silva@empresa.com"
⌘I