Set a workspace agent permission
PUT
Sets the account default for action (merge, publish, store_release) to on; every project without its own value follows it. 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). Turning merge on re-checks the landings it now answers.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
customer_id*stringFormat
uuidaction*stringapplication/json- body
on*booleanRequest fulfilled, document follows
application/json- response
actions*array<>can_edit*booleanoverrides*array<>curl -X PUT 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/agent-grants/string' \ -H 'Content-Type: application/json' \ -d '{ "on": true}'Example Response
{ "actions": [ { "action": "string", "on": true, "set_by": "6589116c-916e-493a-b3f3-dcb3ee346f00", "updated_at": "2019-08-24T14:15:22Z" } ], "can_edit": true, "overrides": [ { "action": "string", "on": true, "repository_id": "b349ae61-b973-4c6c-a5e0-89183ba99ff3" } ]}