Risk

Replace context policy pins using the current revision (owner/admin); does not evaluate participants

post/api/v1/risk/contexts/{id}/policies

Request

  • Base URL: https://api.korala.ai
  • URL: https://api.korala.ai/api/v1/risk/contexts/{id}/policies
  • Auth: one of:
    • API key in header X-API-Key
    • bearer (a scheme the document does not define)

Path parameters

idstring required

Headers

Idempotency-Keystring

Required on mutation POSTs; validation and simulation are read-only exceptions. Retry the same request with the same key; changed input returns 409.

X-Risk-Modestring

Dashboard JWT: live (default) or test. API keys are pinned to their credential mode.

X-Korala-Mode'live' | 'test'

Dashboard JWT: live (default) or test. API keys are pinned to their credential mode. Mode cannot be changed after creation.

idempotency-keystring required

Request body

expectedRevisionnumber required
policyVersionIdsstring[] required

Replace all pins with these published policy versions. An empty list clears the configuration.

reasonstring required

Response

contextIdstring uuid required
revisionnumber required
policyVersionIdsstring[] required

Changes

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