Attach session policy
POST
/session-policies/{session_id}/policiesAttach 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_idstring
Session ID
Headers
Authorizationstring
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