Revoke access
curl --request DELETE \
--url https://{host}/v2/workspaces/slug:storage/webhooks/v1/knowledge_bases/{knowledgeBaseId}/access/{principalType}/{principalId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:storage/webhooks/v1/knowledge_bases/{knowledgeBaseId}/access/{principalType}/{principalId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:storage/webhooks/v1/knowledge_bases/{knowledgeBaseId}/access/{principalType}/{principalId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"object": "knowledge_base.access_binding",
"deleted": true
}Access
Revoke access
Requires admin+ (or owner).
DELETE
/
v1
/
knowledge_bases
/
{knowledgeBaseId}
/
access
/
{principalType}
/
{principalId}
Revoke access
curl --request DELETE \
--url https://{host}/v2/workspaces/slug:storage/webhooks/v1/knowledge_bases/{knowledgeBaseId}/access/{principalType}/{principalId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:storage/webhooks/v1/knowledge_bases/{knowledgeBaseId}/access/{principalType}/{principalId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:storage/webhooks/v1/knowledge_bases/{knowledgeBaseId}/access/{principalType}/{principalId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"object": "knowledge_base.access_binding",
"deleted": true
}Authorizations
User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.
Path Parameters
Knowledge base id. Legacy physical prefix vs_ (the kb_ rename is deferred).
Maximum string length:
128Pattern:
^vs_[A-Za-z0-9-]+$Type of access principal. agent is a first-class owner
principal for conversation/agent-owned knowledge bases (§F-6);
principal_id is then the agent id (or its service-account id).
Available options:
user, group, org, agent Identifier of the principal. For user, the user id; for
group and org, the group/org slug or id resolvable by the
platform.
Maximum string length:
128Was this page helpful?