Update session account scope

Replaces account scope for the bearer's own Person session and returns a replacement token. The path sessionId must match the authenticated bearer; API-key bearers and cross-session updates return 403. When accountScope is non-null, wingspan-api first verifies the Person is authorized for the requested Account and that the Account is not Closed, then Authentication verifies the current live session, preserves auth methods and expiry, revokes the old session, and returns the replacement token. Send accountScope: null to create an unbound Person session. Clients MUST use the returned token after a successful patch.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Body Params
accountScope
object | null
required

New account binding for the replacement session. Send null to clear the account binding and create an unbound Person session token.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json