Set a risky-list exception
PUT
value: allow (don't ask), ask (ask first), never (Blocked: never runs, never asks; a held landing stays held) or null (follow the dial) for action (merge, publish, store_release) on the workspace or one project (repository_id; a project's wins, except a workspace Block holds for every project). expires_at ends it; a Block never expires (400). A signed-in owner or admin only: an API key or the project agent is 403 HUMAN_APPROVAL_REQUIRED.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
customer_id*stringFormat
uuidaction*stringapplication/json- body
expires_at?|nullrepository_id?|nullvalue?|Value in
"allow""ask""never"nullRequest fulfilled, document follows
application/json- response
can_edit*booleangroups?array<>level*stringproject_level?string|nullrecent*array<>risky*array<>workspace_level*stringcurl -X PUT 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/without-asking/risky/string' \ -H 'Content-Type: application/json' \ -d '{}'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"}