EndpointsSessions

Set guardian-managed session permissions

Updates the permissions on a session that a guardian is allowed to manage. Permissions the product does not expose to guardians are ignored rather than rejected, so a request may legitimately change fewer permissions than it names. The response is the resulting permission set — read it back rather than assuming the request applied verbatim.

POST
/session/set-guardian-managed-permissions
AuthorizationBearer <token>

In: header

Request Body

application/json

Update session permissions request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/session/set-guardian-managed-permissions" \  -H "Content-Type: application/json" \  -d '{    "sessionId": "b1a6482d-5242-4b4a-aa88-3fa52595a672",    "enabledPermissions": [      "text-chat-public",      "text-chat-private"    ]  }'
{  "status": "PASS",  "session": {    "sessionId": "b1a6482d-5242-4b4a-aa88-3fa52595a672",    "permissions": [      {        "name": "text-chat-public",        "enabled": false,        "managedBy": "GUARDIAN"      }    ]  }}