Syndai Docs

Set a workspace agent permission

PUT
/api/v1/external/coding/customers/{customer_id}/agent-grants/{action}

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.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

customer_id*string
Formatuuid
action*string

Request Body

application/json
  1. body
on*boolean

Response Body

Request fulfilled, document follows

application/json
  1. response
actions*array<>
can_edit*boolean
overrides*array<>
Example Request
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"    }  ]}
Was this page helpful?