Syndai Docs

Get the default policy

GET
/api/v1/external/coding/policy/defaults

The current default policy config and its version, for the whole workspace or, with coding_repository_id, for one repository. Returns 404 when no default is set for that scope. Requires the coding:policy:read scope.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Query Parameters

coding_repository_id?|null

Response Body

Request fulfilled, document follows

application/json
  1. response
coding_repository_id?|null
config*
updated_at*string
Formatdate-time
version*integer
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/external/coding/policy/defaults'
Example Response
{  "coding_repository_id": "0d18edb4-5201-4374-8af8-14fdbf761813",  "config": {},  "updated_at": "2019-08-24T14:15:22Z",  "version": 0}