Change organization settings
curl --request PATCH \
--url https://api.runaether.dev/orgs/{orgID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"new_pull_request_proof_public": true
}
'import requests
url = "https://api.runaether.dev/orgs/{orgID}"
payload = {
"name": "<string>",
"new_pull_request_proof_public": 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({name: '<string>', new_pull_request_proof_public: true})
};
fetch('https://api.runaether.dev/orgs/{orgID}', 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}",
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([
'name' => '<string>',
'new_pull_request_proof_public' => 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}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"new_pull_request_proof_public\": 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}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"new_pull_request_proof_public\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/orgs/{orgID}")
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 \"name\": \"<string>\",\n \"new_pull_request_proof_public\": true\n}"
response = http.request(request)
puts response.read_body{
"commit_attribution_policy": "per_person",
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "personal",
"member_count": 2,
"name": "<string>",
"new_pull_request_proof_public": true,
"pr_authorship": "aether",
"role": "owner"
}{
"code": "already_org_member",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "already_org_member",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "already_org_member",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "already_org_member",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "already_org_member",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "already_org_member",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Organizations
Change organization settings
Changes an organization's settings, any of its name, proof default, PR authorship and commit attribution policy, and returns the organization.
Use this tool when you need to:
- Rename a team organization
- Choose whether a new pull request's proof opens to anyone holding the proof link or to the organization only
- Choose whether published PRs are written as Aether or as the task creator, or force one commit attribution on every task
Examples:
- PATCH /orgs/{orgID} {"name": "Acme Robotics"}
- PATCH /orgs/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21 {"pr_authorship": "person", "commit_attribution_policy": "aether_author"}
Hints:
- orgID is the organization's uuid. Every field is optional but at least one is required (400 empty_org_update); the fields named change together and the others keep their value.
- name is 1 to 100 characters, not made only of spaces, tabs, newlines, form feeds and carriage returns (422 from the schema otherwise); one the schema admits that holds NUL or no visible character once trimmed (vertical tabs, Unicode spaces or zero-width characters alone) is 400 invalid_org_name. A patch naming name on a personal organization is refused whole with 409 personal_org_immutable; its other settings may change.
- new_pull_request_proof_public is what a pull request's proof starts as: true, public to anyone holding the proof link; false, the organization only. A pull request whose proof was set explicitly keeps what it was given.
- pr_authorship is aether or person: whether a task's published pull request, its description and its comments are written as Aether or as the task creator through their own GitHub connection. Review runs always act as Aether.
- commit_attribution_policy is per_person, where each member's own commit attribution applies, or one commit attribution forced on every task in the organization: person_author, aether_author or aether_only. The schema refuses any other pr_authorship or commit_attribution_policy with 422.
- Use patchPullRequestProof instead to set one pull request's proof visibility, and updateUserSettings to set the caller's own commit attribution.
- Owners and admins only: a member, billing member or viewer is refused with 403 org_role_insufficient, a non-member with 404 org_not_found, and credentials other than a session, such as a platform API key, with 403 credential_kind_not_admitted (an agent host's grant is refused before that with 403 agent_host_route_not_allowed).
PATCH
/
orgs
/
{orgID}
Change organization settings
curl --request PATCH \
--url https://api.runaether.dev/orgs/{orgID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"new_pull_request_proof_public": true
}
'import requests
url = "https://api.runaether.dev/orgs/{orgID}"
payload = {
"name": "<string>",
"new_pull_request_proof_public": 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({name: '<string>', new_pull_request_proof_public: true})
};
fetch('https://api.runaether.dev/orgs/{orgID}', 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}",
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([
'name' => '<string>',
'new_pull_request_proof_public' => 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}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"new_pull_request_proof_public\": 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}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"new_pull_request_proof_public\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/orgs/{orgID}")
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 \"name\": \"<string>\",\n \"new_pull_request_proof_public\": true\n}"
response = http.request(request)
puts response.read_body{
"commit_attribution_policy": "per_person",
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "personal",
"member_count": 2,
"name": "<string>",
"new_pull_request_proof_public": true,
"pr_authorship": "aether",
"role": "owner"
}{
"code": "already_org_member",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "already_org_member",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "already_org_member",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "already_org_member",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "already_org_member",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "already_org_member",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Response
OK
Available options:
per_person, person_author, aether_author, aether_only Available options:
personal, team Required range:
x >= 1Available options:
aether, person Available options:
owner, admin, member, billing, viewer