Snooze the Requests of a Request Group
Snoozes each Request in the Request Group until the given date. It applies to every Request of the group you can access. This endpoint may change or be removed without prior notice.
PATCH
/
v1
/
request_groups
/
{uid}
/
bulk_snooze
Snooze the Requests of a Request Group
curl --request PATCH \
--url https://api.siit.io/v1/request_groups/{uid}/bulk_snooze \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"snoozed_until": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.siit.io/v1/request_groups/{uid}/bulk_snooze"
payload = { "snoozed_until": "2023-11-07T05:31:56Z" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({snoozed_until: '2023-11-07T05:31:56Z'})
};
fetch('https://api.siit.io/v1/request_groups/{uid}/bulk_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_URL => "https://api.siit.io/v1/request_groups/{uid}/bulk_snooze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'snoozed_until' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "https://api.siit.io/v1/request_groups/{uid}/bulk_snooze"
payload := strings.NewReader("{\n \"snoozed_until\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.siit.io/v1/request_groups/{uid}/bulk_snooze")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"snoozed_until\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.siit.io/v1/request_groups/{uid}/bulk_snooze")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"snoozed_until\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"result": {
"total_updated": 123
}
}{
"error": "<string>",
"troubleshoot": "<string>"
}Authorizations
Path Parameters
Body
application/json
Snooze the Requests of a Request Group
curl --request PATCH \
--url https://api.siit.io/v1/request_groups/{uid}/bulk_snooze \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"snoozed_until": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.siit.io/v1/request_groups/{uid}/bulk_snooze"
payload = { "snoozed_until": "2023-11-07T05:31:56Z" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({snoozed_until: '2023-11-07T05:31:56Z'})
};
fetch('https://api.siit.io/v1/request_groups/{uid}/bulk_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_URL => "https://api.siit.io/v1/request_groups/{uid}/bulk_snooze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'snoozed_until' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "https://api.siit.io/v1/request_groups/{uid}/bulk_snooze"
payload := strings.NewReader("{\n \"snoozed_until\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.siit.io/v1/request_groups/{uid}/bulk_snooze")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"snoozed_until\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.siit.io/v1/request_groups/{uid}/bulk_snooze")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"snoozed_until\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"result": {
"total_updated": 123
}
}{
"error": "<string>",
"troubleshoot": "<string>"
}
