cURL
curl -X POST "https://app.cotool.ai/api/roles/:id/perms" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"toAdd":[{"resource":{"type":"all"},"action":"agent.create"}],"toRemove":[{"resource":{"type":"all"},"action":"agent.create"}]}'
{ "perms": [ { "resource": { "type": "<string>" }, "action": "<string>" } ] }
Apply a permission diff to a specific role
API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here
Bearer your_api_key_here
Show child attributes
Successful response
Was this page helpful?