Syndai Docs

Read a project's agent permissions

Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.

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

Each action's effective value for this project and where it comes from (source: account or project), the project's own value (project, null when it follows the account), the account default, and the latest acts agents did here under them (recent). Any workspace member. 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

Response Body

Request fulfilled, document follows

application/json
  1. response
actions*array<>
can_edit*boolean
recent*array<>
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/repositories/497f6eca-6276-4993-bfeb-53cbbbba6f08/agent-grants'
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?