Syndai Docs

Set what an item or a group does without asking

PUT
/api/v1/external/coding/customers/{customer_id}/without-asking/items

rule: allow (Always allow), ask (Needs approval), never (Blocked) or null (back to the default here) for each of items on the workspace or one project (repository_id; a workspace Block holds for every project). Locked items refuse allow (400); a Block never expires. server (an MCP group's choice) also sets that server's row, which a tool approved later follows (Always allow only where the tool says it is read-only). A signed-in owner or admin only: an API key or the project agent is 403 HUMAN_APPROVAL_REQUIRED. Audited (customer.agent_rule.set/cleared).

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

customer_id*string
Formatuuid

Request Body

application/json
  1. body
expires_at?|null
items*array<>
repository_id?|null
rule?|
Value in"allow""ask""never"null
server?|null

Response Body

Request fulfilled, document follows

application/json
  1. response
can_edit*boolean
groups?array<>
level*string
project_level?string|null
recent*array<>
risky*array<>
workspace_level*string
Example Request
curl -X PUT 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/without-asking/items' \  -H 'Content-Type: application/json' \  -d '{  "items": [    {      "tool": "string"    }  ]}'
Example Response
{  "can_edit": true,  "groups": [    {      "custom_tool_id": "ee324563-c6f2-47e0-b512-683b3bbc5b59",      "id": "string",      "items": [        {          "custom_tool_id": "ee324563-c6f2-47e0-b512-683b3bbc5b59",          "expires_at": "2019-08-24T14:15:22Z",          "levels": [            "string"          ],          "locked": true,          "note": "string",          "project_rule": "string",          "read_only_hint": false,          "rule": "string",          "source": "string",          "title": "string",          "tool": "string",          "workspace_rule": "string"        }      ],      "levels": [        "string"      ],      "title": "string"    }  ],  "level": "string",  "project_level": "string",  "recent": [    {      "action": "string",      "at": "2019-08-24T14:15:22Z",      "coding_run_id": "string",      "package": "string",      "paths": 0    }  ],  "risky": [    {      "action": "string",      "exception": "string",      "expires_at": "2019-08-24T14:15:22Z",      "runs": true,      "scope": "string"    }  ],  "workspace_level": "string"}
Was this page helpful?