checkOrgPolicy
Parse and check a policy file as saving it would, without saving: each problem with where it is and a suggested fix.
POST
/orgs/{org_id}/policy-checksPath parameters
Request body JSON required
Returns
400
InvalidRequest | RequestBodyTooDeep
JSON
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
OrgNotFound | RepoNotFound
JSON
One of the following:
- OrgNotFoundEncoded
- RepoNotFoundEncoded
413
RequestBodyTooLarge
500
OrgFailure | RepoFailure
JSON
One of the following:
- OrgFailureEncoded
- RepoFailureEncoded
503
SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded