PUT
/
accounts
/
sessions
/
{sessionId}
curl --request PUT \
  --url https://server.ownid.com/{appId}/accounts/sessions/{sessionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "payload": {
    "preferences": {
      "theme": "dark",
      "resolution": "wide"
    }
  }
}'
{
  "payload": {
    "preferences": {
      "theme": "dark",
      "resolution": "wide"
    }
  },
  "created": "2000-10-31T06:30:00.000Z",
  "timeout": 10000,
  "lastActive": "2000-10-31T06:30:00.000Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

sessionId
string
required

The session ID.

Body

application/json
payload
object

Response

200
application/json
Successfully updated the session.
created
string
required
timeout
integer
lastActive
string
payload
object