Syndai Docs

Set a project's agent permission

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

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.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

customer_id*string
Formatuuid
repository_id*string
Formatuuid
action*string

Request Body

application/json
  1. body
value*string
Value in"inherit""on""off"

Response Body

Request fulfilled, document follows

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