Update Sentry route
curl --request PATCH \
--url https://api.runaether.dev/orgs/{orgID}/sentry/routes/{routeID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true
}
'import requests
url = "https://api.runaether.dev/orgs/{orgID}/sentry/routes/{routeID}"
payload = {
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": True
}
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({agent_profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', enabled: true})
};
fetch('https://api.runaether.dev/orgs/{orgID}/sentry/routes/{routeID}', 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.runaether.dev/orgs/{orgID}/sentry/routes/{routeID}",
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([
'agent_profile_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'enabled' => true
]),
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.runaether.dev/orgs/{orgID}/sentry/routes/{routeID}"
payload := strings.NewReader("{\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"enabled\": true\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.runaether.dev/orgs/{orgID}/sentry/routes/{routeID}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/orgs/{orgID}/sentry/routes/{routeID}")
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 \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"aether_project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"route_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sentry_project_id": "<string>",
"sentry_project_name": "<string>",
"sentry_project_slug": "<string>"
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Sentry
Update Sentry route
Applies a merge patch to one of the organization's Sentry routes, turning it on or off or setting the agent profile its tasks run with, and returns the route.
Use this tool when you need to:
- Pause or resume a route without deleting it
- Run a route's tasks with an agent profile, or return them to the project's defaults
Examples:
- PATCH /orgs/{orgID}/sentry/routes/{routeID} {"enabled": false}
- PATCH /orgs/{orgID}/sentry/routes/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21 {"agent_profile_id": null}
Hints:
- routeID is the route's uuid (listSentryRoutes); the schema answers 422 for one that is not a uuid. The body takes enabled (a boolean) and agent_profile_id (a uuid, or null for the project's defaults); an omitted field is kept, and the schema answers 422 for a null enabled or an unknown field.
- A body naming neither field is refused with 422 before the route is read. A route's Sentry project and Aether project do not change: delete it and create another.
- Returns the SentryRoute as written; Sentry is not called.
- Use deleteSentryRoute instead to remove the route, and listSentryRoutes to find its routeID.
- Org owners and admins only, with a session or a platform API key: a member, viewer or billing member is refused with 403 org_role_insufficient before the path or body is validated, a non-member with 403 org_membership_required, an orgID that is not a uuid with 400, and an agent host's grant with 403 agent_host_route_not_allowed.
- Refused with 404 not_connected when Sentry is not installed, 404 route_not_found for a route the organization's installation does not hold, and 422 agent_profile_not_found for a profile the organization does not hold.
PATCH
/
orgs
/
{orgID}
/
sentry
/
routes
/
{routeID}
Update Sentry route
curl --request PATCH \
--url https://api.runaether.dev/orgs/{orgID}/sentry/routes/{routeID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true
}
'import requests
url = "https://api.runaether.dev/orgs/{orgID}/sentry/routes/{routeID}"
payload = {
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": True
}
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({agent_profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', enabled: true})
};
fetch('https://api.runaether.dev/orgs/{orgID}/sentry/routes/{routeID}', 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.runaether.dev/orgs/{orgID}/sentry/routes/{routeID}",
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([
'agent_profile_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'enabled' => true
]),
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.runaether.dev/orgs/{orgID}/sentry/routes/{routeID}"
payload := strings.NewReader("{\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"enabled\": true\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.runaether.dev/orgs/{orgID}/sentry/routes/{routeID}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/orgs/{orgID}/sentry/routes/{routeID}")
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 \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"aether_project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"route_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sentry_project_id": "<string>",
"sentry_project_name": "<string>",
"sentry_project_slug": "<string>"
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
OK
The agent profile tasks the route starts run with; null for the project's defaults.
Minimum string length:
1Minimum string length:
1Minimum string length:
1