Set a project's agent permission
PUT
value: inherit (follow the account default), on or off for this project only; the project's value wins over the account's. A signed-in owner or admin only: an API key or the project agent is 403 HUMAN_APPROVAL_REQUIRED, a member 403. Audited (customer.policy.updated). 404 for another workspace's project.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
customer_id*stringFormat
uuidrepository_id*stringFormat
uuidaction*stringapplication/json- body
value*stringValue in
"inherit""on""off"Request fulfilled, document follows
application/json- response
actions*array<>can_edit*booleanrecent*array<>curl -X PUT 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/repositories/497f6eca-6276-4993-bfeb-53cbbbba6f08/agent-grants/string' \ -H 'Content-Type: application/json' \ -d '{ "value": "inherit"}'Example Response
{ "actions": [ { "account": true, "action": "string", "effective": true, "project": true, "source": "string" } ], "can_edit": true, "recent": [ { "action": "string", "at": "2019-08-24T14:15:22Z", "coding_run_id": "string", "package": "string", "paths": 0 } ]}