Update Slack route
curl --request PATCH \
--url https://api.runaether.dev/orgs/{orgID}/slack/routes/{routeID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"post_task_cards": true
}
'import requests
url = "https://api.runaether.dev/orgs/{orgID}/slack/routes/{routeID}"
payload = {
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": True,
"post_task_cards": 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,
post_task_cards: true
})
};
fetch('https://api.runaether.dev/orgs/{orgID}/slack/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}/slack/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,
'post_task_cards' => 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}/slack/routes/{routeID}"
payload := strings.NewReader("{\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"enabled\": true,\n \"post_task_cards\": 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}/slack/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 \"post_task_cards\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/orgs/{orgID}/slack/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 \"post_task_cards\": 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",
"channel_id": "<string>",
"channel_name": "<string>",
"enabled": true,
"is_private": true,
"post_task_cards": true,
"route_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"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>"
}
]
}Slack
Update Slack route
Applies a merge patch to one of the organization's Slack routes, turning it or its task cards 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, so mentions in its channel stop or start creating tasks in its project
- Turn the channel's task cards for the route's project on or off
- Pin an agent profile on the route's tasks, or return them to the project's defaults
Examples:
- PATCH /orgs/{orgID}/slack/routes/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21 {"post_task_cards": true}
- PATCH /orgs/{orgID}/slack/routes/{routeID} {"enabled": false, "agent_profile_id": null}
Hints:
- orgID is the org's uuid and routeID the route's route_id, a uuid. enabled and post_task_cards (booleans) and agent_profile_id (a uuid, or null for the project's defaults) are each optional, and an omitted one is kept; the schema answers 422 for a mistyped value or any other field, and the handler 422, with no domain code, for a patch naming none of the three.
- post_task_cards true gives the channel a card for each task the project starts from when it was turned on, wherever the task was started; sending true again keeps that start, and turning it off then on moves it to then.
- Use createSlackRoute instead to route the channel to another project (a route's channel and project are fixed), deleteSlackRoute to remove the route, and listAgentProfiles to find a profile.
- 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, after the patch is checked for a field, with 404 not_connected when Slack is not installed, 404 route_not_found for a route not of the organization's workspace, and 422 agent_profile_not_found for a profile the organization does not hold.
PATCH
/
orgs
/
{orgID}
/
slack
/
routes
/
{routeID}
Update Slack route
curl --request PATCH \
--url https://api.runaether.dev/orgs/{orgID}/slack/routes/{routeID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"post_task_cards": true
}
'import requests
url = "https://api.runaether.dev/orgs/{orgID}/slack/routes/{routeID}"
payload = {
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": True,
"post_task_cards": 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,
post_task_cards: true
})
};
fetch('https://api.runaether.dev/orgs/{orgID}/slack/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}/slack/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,
'post_task_cards' => 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}/slack/routes/{routeID}"
payload := strings.NewReader("{\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"enabled\": true,\n \"post_task_cards\": 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}/slack/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 \"post_task_cards\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/orgs/{orgID}/slack/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 \"post_task_cards\": 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",
"channel_id": "<string>",
"channel_name": "<string>",
"enabled": true,
"is_private": true,
"post_task_cards": true,
"route_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"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.
Body
application/json
Response
OK
The agent profile tasks the route starts run with; null for the project's defaults.
Minimum string length:
1Minimum string length:
1Whether the channel gets a card for each task the project starts from then on, wherever it was started.