Risk

Attach an existing same-workspace, same-mode subject to a context

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

Request

  • Base URL: https://api.korala.ai
  • URL: https://api.korala.ai/api/v1/risk/contexts/{id}/subjects
  • 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

subjectIdstring uuid required

Response

contextIdstring uuid required
subjectIdstring uuid required
organizationIdstring uuid required
sandboxboolean required
createdBystring required
createdAtstring date-time required

Changes

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