Skip to main content
POST
/
tools
/
{org_id}
/
{tool_id}
/
permissions
Upsert Tool Permission
curl --request POST \
  --url https://api.example.com/tools/{org_id}/{tool_id}/permissions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "<string>",
  "can_use": true,
  "usage_quota_per_day": 123,
  "allowed_versions": []
}
'
true

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org_id
string
required
tool_id
string
required

Body

application/json
agent_id
string
required
can_use
boolean | null
default:true
usage_quota_per_day
integer | null
allowed_versions
string[] | null

Response

Successful Response

The response is of type boolean.