curl --request PATCH \
--url https://{tenantDomain}/api/v2/sessions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"session_metadata": {}
}
'{
"id": "<string>",
"user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"authenticated_at": "2023-11-07T05:31:56Z",
"idle_expires_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"last_interacted_at": "2023-11-07T05:31:56Z",
"device": {
"initial_user_agent": "<string>",
"initial_ip": "<string>",
"initial_asn": "<string>",
"last_user_agent": "<string>",
"last_ip": "<string>",
"last_asn": "<string>"
},
"clients": [
{
"client_id": "<string>"
}
],
"authentication": {
"methods": [
{
"name": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"type": "<string>"
}
]
},
"cookie": {
"mode": "non-persistent"
},
"session_metadata": {}
}Update session information.
curl --request PATCH \
--url https://{tenantDomain}/api/v2/sessions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"session_metadata": {}
}
'{
"id": "<string>",
"user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"authenticated_at": "2023-11-07T05:31:56Z",
"idle_expires_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"last_interacted_at": "2023-11-07T05:31:56Z",
"device": {
"initial_user_agent": "<string>",
"initial_ip": "<string>",
"initial_asn": "<string>",
"last_user_agent": "<string>",
"last_ip": "<string>",
"last_asn": "<string>"
},
"clients": [
{
"client_id": "<string>"
}
],
"authentication": {
"methods": [
{
"name": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"type": "<string>"
}
]
},
"cookie": {
"mode": "non-persistent"
},
"session_metadata": {}
}Documentation Index
Fetch the complete documentation index at: https://auth0-feat-custom-rate-limit-policies.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the session to update.
Metadata associated with the session. Pass null or {} to remove all session_metadata.
Session successfully updated.
The ID of the session
ID of the user which can be used when interacting with other APIs.
The date and time when the session was created
The date and time when the session was created
The date and time when the session was created
The date and time when the session was created
The date and time when the session was created
The date and time when the session was created
Metadata related to the device used in the session
Show child attributes
List of client details for the session
Show child attributes
Details about authentication signals obtained during the login flow
Show child attributes
[Private Early Access] Session cookie configuration.
Show child attributes
Metadata associated with the session, in the form of an object with string values (max 255 chars). Maximum of 25 metadata properties allowed.
このページは役に立ちましたか?