Monitoring
Remove Schedule Authorizers
Remove authorizers from a scheduled balance request
PATCH
/
v1
/
monitoring
/
schedules
/
{id}
/
authorizers
Remove authorizers from a schedule
curl --request PATCH \
--url https://api.rightfoot.com/v1/monitoring/schedules/{id}/authorizers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"authorizer_unique_ids": [
"auth-123",
"auth-456",
"auth-789"
]
}
'import requests
url = "https://api.rightfoot.com/v1/monitoring/schedules/{id}/authorizers"
payload = { "authorizer_unique_ids": ["auth-123", "auth-456", "auth-789"] }
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({authorizer_unique_ids: ['auth-123', 'auth-456', 'auth-789']})
};
fetch('https://api.rightfoot.com/v1/monitoring/schedules/{id}/authorizers', 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.rightfoot.com/v1/monitoring/schedules/{id}/authorizers",
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([
'authorizer_unique_ids' => [
'auth-123',
'auth-456',
'auth-789'
]
]),
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.rightfoot.com/v1/monitoring/schedules/{id}/authorizers"
payload := strings.NewReader("{\n \"authorizer_unique_ids\": [\n \"auth-123\",\n \"auth-456\",\n \"auth-789\"\n ]\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.rightfoot.com/v1/monitoring/schedules/{id}/authorizers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"authorizer_unique_ids\": [\n \"auth-123\",\n \"auth-456\",\n \"auth-789\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rightfoot.com/v1/monitoring/schedules/{id}/authorizers")
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 \"authorizer_unique_ids\": [\n \"auth-123\",\n \"auth-456\",\n \"auth-789\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"removed_count": 3,
"remaining_count": 147
}{
"status": "error",
"status_code": 401,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API key provided.",
"timestamp": "2024-09-16T12:01:00Z",
"suggestion": "Please check your API key."
},
"documentation_url": "https://api.rightfoot.com/docs"
}{
"status": "error",
"status_code": 404,
"error": {
"code": "NOT_FOUND",
"message": "Schedule not found.",
"timestamp": "2024-12-12T12:00:00Z",
"suggestion": "Please check the schedule ID."
},
"documentation_url": "https://api.rightfoot.com/docs"
}{
"status": "error",
"status_code": 500,
"error": {
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred while retrieving the balances.",
"timestamp": "2024-09-16T12:11:00Z",
"suggestion": "Please try again later. If the problem persists, contact our support team."
},
"documentation_url": "https://api.rightfoot.com/docs"
}Remove Schedule Authorizers
Remove specific authorizers from an existing scheduled balance request. The schedule will continue running for any remaining authorizers.Use Cases
- Stop monitoring specific accounts while keeping the schedule active for others
- Clean up authorizers that are no longer needed
- Reduce the scope of an existing schedule without recreating it
Response Fields
| Field | Description |
|---|---|
removed_count | Number of authorizers successfully removed from the schedule |
remaining_count | Number of authorizers still in the schedule after removal |
Authorizations
Authentication to the API is performed via Bearer Token Authentication. Provide your API key as the bearer token in the Authorization header.
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.
Path Parameters
The schedule ID (UUID) returned when creating the scheduled balance request.
Body
application/json
List of authorizer unique IDs to remove from the schedule.
Was this page helpful?
⌘I
Remove authorizers from a schedule
curl --request PATCH \
--url https://api.rightfoot.com/v1/monitoring/schedules/{id}/authorizers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"authorizer_unique_ids": [
"auth-123",
"auth-456",
"auth-789"
]
}
'import requests
url = "https://api.rightfoot.com/v1/monitoring/schedules/{id}/authorizers"
payload = { "authorizer_unique_ids": ["auth-123", "auth-456", "auth-789"] }
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({authorizer_unique_ids: ['auth-123', 'auth-456', 'auth-789']})
};
fetch('https://api.rightfoot.com/v1/monitoring/schedules/{id}/authorizers', 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.rightfoot.com/v1/monitoring/schedules/{id}/authorizers",
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([
'authorizer_unique_ids' => [
'auth-123',
'auth-456',
'auth-789'
]
]),
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.rightfoot.com/v1/monitoring/schedules/{id}/authorizers"
payload := strings.NewReader("{\n \"authorizer_unique_ids\": [\n \"auth-123\",\n \"auth-456\",\n \"auth-789\"\n ]\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.rightfoot.com/v1/monitoring/schedules/{id}/authorizers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"authorizer_unique_ids\": [\n \"auth-123\",\n \"auth-456\",\n \"auth-789\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rightfoot.com/v1/monitoring/schedules/{id}/authorizers")
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 \"authorizer_unique_ids\": [\n \"auth-123\",\n \"auth-456\",\n \"auth-789\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"removed_count": 3,
"remaining_count": 147
}{
"status": "error",
"status_code": 401,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API key provided.",
"timestamp": "2024-09-16T12:01:00Z",
"suggestion": "Please check your API key."
},
"documentation_url": "https://api.rightfoot.com/docs"
}{
"status": "error",
"status_code": 404,
"error": {
"code": "NOT_FOUND",
"message": "Schedule not found.",
"timestamp": "2024-12-12T12:00:00Z",
"suggestion": "Please check the schedule ID."
},
"documentation_url": "https://api.rightfoot.com/docs"
}{
"status": "error",
"status_code": 500,
"error": {
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred while retrieving the balances.",
"timestamp": "2024-09-16T12:11:00Z",
"suggestion": "Please try again later. If the problem persists, contact our support team."
},
"documentation_url": "https://api.rightfoot.com/docs"
}