Policy Management

Makes a decision

This endpoint will evaluate input data (config+metadata) against owner's stored policies and return a decision.

post/owner/{ownerID}/context/{context}/decision

Request

  • Base URL
    https://circleci.com/api/v2
  • URL
    https://circleci.com/api/v2/owner/{ownerID}/context/{context}/decision
  • Auth
    • API key in header Circle-Token
    • or HTTP bearer
    • or HTTP basic
    • or API key in query parameter circle-token

Path parameters

ownerIDstring required
contextstring required

Request body

inputstring required
metadataobject

Response

Decision rendered by applying the policy against the provided data. Response will be modeled by the data and rego processed.

enabled_rulesstring[]
reasonstring
statusstring required

Changes

No recorded changes to this operation across all 1 revision of this API.