Replace the default policy
PUT
Validate a policy config and save it as the new current default, for the workspace or for one repository, as a new version. An invalid config is 400 INVALID_POLICY, and a repository outside this workspace is 422 REPO_NOT_BOUND. Requires the coding:policy:write scope.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
application/json- body
coding_repository_id?|nullconfig*Request fulfilled, document follows
application/json- response
coding_repository_id?|nullupdated_at*stringFormat
date-timeversion*integercurl -X PUT 'https://api.syndai.ai/api/v1/external/coding/policy/defaults' \ -H 'Content-Type: application/json' \ -d '{ "config": {}}'Example Response
{ "coding_repository_id": "0d18edb4-5201-4374-8af8-14fdbf761813", "updated_at": "2019-08-24T14:15:22Z", "version": 0}