Change a plugin's organization-wide defaults
curl --request PATCH \
--url https://api.runaether.dev/plugins/{pluginID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled_by_default": true
}
'import requests
url = "https://api.runaether.dev/plugins/{pluginID}"
payload = { "enabled_by_default": 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({enabled_by_default: true})
};
fetch('https://api.runaether.dev/plugins/{pluginID}', 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/plugins/{pluginID}",
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([
'enabled_by_default' => 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/plugins/{pluginID}"
payload := strings.NewReader("{\n \"enabled_by_default\": 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/plugins/{pluginID}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled_by_default\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/plugins/{pluginID}")
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 \"enabled_by_default\": true\n}"
response = http.request(request)
puts response.read_body{
"commit": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"default_credential_policy": "creator",
"enabled_by_default": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"manifests": {
"agent_plugins": true,
"claude": true,
"codex": true,
"synthesized": true
},
"name": "<string>",
"needs_credential": true,
"path": "<string>",
"ref": "<string>",
"repository_url": "<string>",
"servers": [
{
"auth": "none",
"key": "<string>",
"kind": "remote",
"mcp_server_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}
],
"support": {
"claude_code": [
"skills"
],
"codex": [
"skills"
]
},
"updated_at": "2023-11-07T05:31:56Z",
"delivery": {
"claude_code": "deliverable",
"codex": "deliverable"
},
"directory": {
"display_name": "<string>",
"homepage": "<string>"
},
"marketplace": {
"name": "<string>",
"plugin": "<string>",
"url": "<string>"
},
"skills": [
{
"agents": [
"claude_code"
],
"description": "<string>",
"name": "<string>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "plugin_request_invalid",
"conflicts": [
{
"key": "<string>",
"plugin": "<string>",
"source": "manual"
}
],
"error": "<string>"
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Plugins
Change a plugin's organization-wide defaults
Changes one of a plugin's organization-wide defaults, default_credential_policy or enabled_by_default, rewriting every project's enablement, and answers with the plugin.
Use this tool when you need to:
- Set whose connections every project enabling the plugin uses: the task creator's or the organization's
- Switch a plugin off for every project of the organization, or on again for all of them
Examples:
- PATCH /plugins/{pluginID} {"default_credential_policy": "org"}
- PATCH /plugins/{pluginID} {"enabled_by_default": false}
Hints:
- A merge patch naming exactly one field: each rewrites every project's enablement on its own, so a body naming two or none is refused with 422. Setting enabled_by_default to the value it has writes nothing; setting default_credential_policy, even to the value it has, sets it on every project that enables the plugin.
- default_credential_policy (creator, org or null) is set on every project that enables the plugin now, replacing what each set for itself, and applies to every authenticated MCP server of the plugin.
- Null exactly for a plugin none of whose servers authenticates: otherwise 422 mcp_credential_policy_required, and a policy for one that needs none 422 mcp_credential_policy_not_applicable; org is refused with 422 mcp_credential_policy_org_unavailable unless the organization has its own connection to every authenticated server of the plugin.
- enabled_by_default true enables the plugin on every current project of the organization that does not enable it, with its default credential policy, and on every project created later; false deletes every project's enablement, and no project enables it (enableProjectPlugin refuses with plugin_switched_off) until it is set true again. False is refused with 409 plugin_server_required while a server of the plugin is required.
- Use enableProjectPlugin (PUT) instead to enable the plugin on one project or set that project's own credential policy, and disableProjectPlugin to exclude it from one project.
- Owners and admins of the plugin's organization; a member is refused with 403 control_forbidden, a viewer or billing member with 403 org_role_insufficient, a suspended organization with 403 org_suspended, and a plugin the caller cannot see is 404; 503 when the membership check is unavailable. An agent host's grant is refused with 403 agent_host_route_not_allowed.
PATCH
/
plugins
/
{pluginID}
Change a plugin's organization-wide defaults
curl --request PATCH \
--url https://api.runaether.dev/plugins/{pluginID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled_by_default": true
}
'import requests
url = "https://api.runaether.dev/plugins/{pluginID}"
payload = { "enabled_by_default": 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({enabled_by_default: true})
};
fetch('https://api.runaether.dev/plugins/{pluginID}', 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/plugins/{pluginID}",
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([
'enabled_by_default' => 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/plugins/{pluginID}"
payload := strings.NewReader("{\n \"enabled_by_default\": 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/plugins/{pluginID}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled_by_default\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/plugins/{pluginID}")
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 \"enabled_by_default\": true\n}"
response = http.request(request)
puts response.read_body{
"commit": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"default_credential_policy": "creator",
"enabled_by_default": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"manifests": {
"agent_plugins": true,
"claude": true,
"codex": true,
"synthesized": true
},
"name": "<string>",
"needs_credential": true,
"path": "<string>",
"ref": "<string>",
"repository_url": "<string>",
"servers": [
{
"auth": "none",
"key": "<string>",
"kind": "remote",
"mcp_server_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}
],
"support": {
"claude_code": [
"skills"
],
"codex": [
"skills"
]
},
"updated_at": "2023-11-07T05:31:56Z",
"delivery": {
"claude_code": "deliverable",
"codex": "deliverable"
},
"directory": {
"display_name": "<string>",
"homepage": "<string>"
},
"marketplace": {
"name": "<string>",
"plugin": "<string>",
"url": "<string>"
},
"skills": [
{
"agents": [
"claude_code"
],
"description": "<string>",
"name": "<string>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "plugin_request_invalid",
"conflicts": [
{
"key": "<string>",
"plugin": "<string>",
"source": "manual"
}
],
"error": "<string>"
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Authorizations
Body
application/json
True: the plugin is enabled on every current project that does not enable it, with its default credential policy, and on every project created later. False: every project's enablement is deleted, and no project enables it until it is true again; refused with plugin_server_required while a server of the plugin is required.
Response
OK