Reject Request
curl --request POST \
--url http://{host}:{port}/{basePath}/approvals/{name}/reject \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"rejectedBy": "ana.costa@empresa.com",
"reason": "Prefer adjusting HPA before raising limits."
}
'import requests
url = "http://{host}:{port}/{basePath}/approvals/{name}/reject"
payload = {
"rejectedBy": "ana.costa@empresa.com",
"reason": "Prefer adjusting HPA before raising limits."
}
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({
rejectedBy: 'ana.costa@empresa.com',
reason: 'Prefer adjusting HPA before raising limits.'
})
};
fetch('http://{host}:{port}/{basePath}/approvals/{name}/reject', 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}/approvals/{name}/reject",
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([
'rejectedBy' => 'ana.costa@empresa.com',
'reason' => 'Prefer adjusting HPA before raising limits.'
]),
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}/approvals/{name}/reject"
payload := strings.NewReader("{\n \"rejectedBy\": \"ana.costa@empresa.com\",\n \"reason\": \"Prefer adjusting HPA before raising limits.\"\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}/approvals/{name}/reject")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"rejectedBy\": \"ana.costa@empresa.com\",\n \"reason\": \"Prefer adjusting HPA before raising limits.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/approvals/{name}/reject")
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 \"rejectedBy\": \"ana.costa@empresa.com\",\n \"reason\": \"Prefer adjusting HPA before raising limits.\"\n}"
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "Approval",
"metadata": {
"name": "APR-20260319-001",
"namespace": "production"
},
"status": {
"status": "rejected",
"rejectedBy": "ana.costa@empresa.com",
"rejectedAt": "2026-03-19T15:40:00Z",
"reason": "Preferimos resolver com HPA antes de aumentar limits. Vamos ajustar o autoscaling primeiro.",
"incident": "INC-20260319-001",
"remediationTriggered": false
}
}
Approvals
Reject Request
Rejects a pending request, preventing the remediation from being executed
POST
/
approvals
/
{name}
/
reject
Reject Request
curl --request POST \
--url http://{host}:{port}/{basePath}/approvals/{name}/reject \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"rejectedBy": "ana.costa@empresa.com",
"reason": "Prefer adjusting HPA before raising limits."
}
'import requests
url = "http://{host}:{port}/{basePath}/approvals/{name}/reject"
payload = {
"rejectedBy": "ana.costa@empresa.com",
"reason": "Prefer adjusting HPA before raising limits."
}
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({
rejectedBy: 'ana.costa@empresa.com',
reason: 'Prefer adjusting HPA before raising limits.'
})
};
fetch('http://{host}:{port}/{basePath}/approvals/{name}/reject', 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}/approvals/{name}/reject",
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([
'rejectedBy' => 'ana.costa@empresa.com',
'reason' => 'Prefer adjusting HPA before raising limits.'
]),
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}/approvals/{name}/reject"
payload := strings.NewReader("{\n \"rejectedBy\": \"ana.costa@empresa.com\",\n \"reason\": \"Prefer adjusting HPA before raising limits.\"\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}/approvals/{name}/reject")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"rejectedBy\": \"ana.costa@empresa.com\",\n \"reason\": \"Prefer adjusting HPA before raising limits.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/approvals/{name}/reject")
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 \"rejectedBy\": \"ana.costa@empresa.com\",\n \"reason\": \"Prefer adjusting HPA before raising limits.\"\n}"
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "Approval",
"metadata": {
"name": "APR-20260319-001",
"namespace": "production"
},
"status": {
"status": "rejected",
"rejectedBy": "ana.costa@empresa.com",
"rejectedAt": "2026-03-19T15:40:00Z",
"reason": "Preferimos resolver com HPA antes de aumentar limits. Vamos ajustar o autoscaling primeiro.",
"incident": "INC-20260319-001",
"remediationTriggered": false
}
}
string
required
Unique approval name (e.g.,
APR-20260319-001)string
required
Identifier of the user rejecting the request
string
required
Reason for the rejection
{
"apiVersion": "v1",
"kind": "Approval",
"metadata": {
"name": "APR-20260319-001",
"namespace": "production"
},
"status": {
"status": "rejected",
"rejectedBy": "ana.costa@empresa.com",
"rejectedAt": "2026-03-19T15:40:00Z",
"reason": "Preferimos resolver com HPA antes de aumentar limits. Vamos ajustar o autoscaling primeiro.",
"incident": "INC-20260319-001",
"remediationTriggered": false
}
}
{
"apiVersion": "v1",
"kind": "Error",
"error": {
"code": 409,
"message": "Approval already decided",
"details": "The approval 'APR-20260319-001' was already rejected by ana.costa@empresa.com at 2026-03-19T15:40:00Z"
}
}
Authorizations
Bearer token issued by the operator. Format: Authorization: Bearer <token>.
Path Parameters
Unique approval name.
Example:
"APR-20260319-001"
Body
application/json
⌘I