Update an organization MCP server (org admin)
import requests
url = "https://eu.app.clarifeye.ai/api/v1/organizations/{organization_id}/mcp-servers/{id}/"
payload = {
"enabled": True,
"all_stores": True,
"store_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"name": "<string>",
"url": "<string>",
"enabled_tools": ["<string>"],
"enabled_with_approval_tools": ["<string>"],
"oauth_client_id": "<string>",
"oauth_client_secret": "<string>"
}
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: true,
all_stores: true,
store_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
name: '<string>',
url: '<string>',
enabled_tools: ['<string>'],
enabled_with_approval_tools: ['<string>'],
oauth_client_id: '<string>',
oauth_client_secret: '<string>'
})
};
fetch('https://eu.app.clarifeye.ai/api/v1/organizations/{organization_id}/mcp-servers/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://eu.app.clarifeye.ai/api/v1/organizations/{organization_id}/mcp-servers/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"all_stores": true,
"store_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"name": "<string>",
"url": "<string>",
"enabled_tools": [
"<string>"
],
"enabled_with_approval_tools": [
"<string>"
],
"oauth_client_id": "<string>",
"oauth_client_secret": "<string>"
}
'{
"enabled": true,
"all_stores": true,
"store_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"url": "<string>",
"normalized_url": "<string>",
"auth_mode": "oauth",
"version": 123,
"linked_store_count": 123,
"tool_catalog": [
{}
],
"enabled_tools": [
"<string>"
],
"enabled_with_approval_tools": [
"<string>"
],
"oauth_client_id": "<string>",
"last_synced_at": "2023-11-07T05:31:56Z",
"last_sync_error": "<string>"
}Organization items
Update an organization MCP server (org admin)
A change to the name, either tool list or the OAuth client bumps version, which offers linked copies an update. Availability and enabled don’t.
PATCH
/
organizations
/
{organization_id}
/
mcp-servers
/
{id}
/
Update an organization MCP server (org admin)
import requests
url = "https://eu.app.clarifeye.ai/api/v1/organizations/{organization_id}/mcp-servers/{id}/"
payload = {
"enabled": True,
"all_stores": True,
"store_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"name": "<string>",
"url": "<string>",
"enabled_tools": ["<string>"],
"enabled_with_approval_tools": ["<string>"],
"oauth_client_id": "<string>",
"oauth_client_secret": "<string>"
}
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: true,
all_stores: true,
store_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
name: '<string>',
url: '<string>',
enabled_tools: ['<string>'],
enabled_with_approval_tools: ['<string>'],
oauth_client_id: '<string>',
oauth_client_secret: '<string>'
})
};
fetch('https://eu.app.clarifeye.ai/api/v1/organizations/{organization_id}/mcp-servers/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://eu.app.clarifeye.ai/api/v1/organizations/{organization_id}/mcp-servers/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"all_stores": true,
"store_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"name": "<string>",
"url": "<string>",
"enabled_tools": [
"<string>"
],
"enabled_with_approval_tools": [
"<string>"
],
"oauth_client_id": "<string>",
"oauth_client_secret": "<string>"
}
'{
"enabled": true,
"all_stores": true,
"store_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"url": "<string>",
"normalized_url": "<string>",
"auth_mode": "oauth",
"version": 123,
"linked_store_count": 123,
"tool_catalog": [
{}
],
"enabled_tools": [
"<string>"
],
"enabled_with_approval_tools": [
"<string>"
],
"oauth_client_id": "<string>",
"last_synced_at": "2023-11-07T05:31:56Z",
"last_sync_error": "<string>"
}Authorizations
BearerAuthTokenAuth
Use Authorization: Bearer <token>. The token is either a user token / OAuth access
token, or a service-account API key (cfk_...). A key is valid on every endpoint and
acts as its service account, an organization member with per-store permissions.
Refused keys answer 403 with Invalid API key., API key revoked.,
API key expired. or API key disabled..
Body
application/json
Response
200 - application/json
Updated