Skip to content
Hexel StudioDocs

Attach session policy

POST/session-policies/{session_id}/policies

Attach a policy document (a JSON string) to an STS session (the token's sid claim) in the caller's organization. Session policies only narrow: in that session an action is allowed only if some session policy Allows it and none Denies it. Enforced by the full evaluator (/internal/evaluate, /authz/*), not by policy snapshots.

Path parameters

Session ID

Headers

Bearer <token>.

Body parameters

Session Policy

created_atoptional string
documentoptional string
idoptional string
nameoptional string
organization_idoptional string

owner; set from the caller (migration 037)

session_idoptional string

Returns

201CreatedSessionPolicy

created_atoptional string
documentoptional string
idoptional string
nameoptional string
organization_idoptional string

owner; set from the caller (migration 037)

session_idoptional string

Errors

  • 400Bad Request