Update an existing session
PATCHhttps://$CUSTOM-DOMAIN/v2/sessions/:sessionId
Update an existing session with new information.
Request​
Path Parameters
"id of the session to update"
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
Possible values: non-empty
and <= 200 characters
"DEPRECATED: this field is ignored."
checks
object
metadata
object
challenges
object
"duration (in seconds) after which the session will be automatically invalidated"
Body
required
Possible values: non-empty
and <= 200 characters
"DEPRECATED: this field is ignored."
checks
object
metadata
object
challenges
object
"duration (in seconds) after which the session will be automatically invalidated"
Body
required
Possible values: non-empty
and <= 200 characters
"DEPRECATED: this field is ignored."
checks
object
metadata
object
challenges
object
"duration (in seconds) after which the session will be automatically invalidated"
Responses​
- 200
- 403
- 404
- default
OK
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object
"The current token of the session, which is required for delete session, get session or the request of other resources."
challenges
object
{
"details": {
"sequence": "2",
"changeDate": "2025-03-05T21:29:22.262Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-05T21:29:22.262Z"
},
"sessionToken": "string",
"challenges": {
"webAuthN": {
"publicKeyCredentialRequestOptions": {
"publicKey": {
"allowCredentials": [
{
"id": "ATmqBg-99qyOZk2zloPdJQyS2R7IkFT7v9Hoos_B_nM",
"type": "public-key"
}
],
"challenge": "GAOHYz2jE69kJMYo6Laij8yWw9-dKKgbViNhfuy0StA",
"rpId": "localhost",
"timeout": 300000,
"userVerification": "required"
}
}
},
"otpSms": "string",
"otpEmail": "string"
}
}
- Schema
- Example (from schema)
Schema
details
object
"The current token of the session, which is required for delete session, get session or the request of other resources."
challenges
object
{
"details": {
"sequence": "2",
"changeDate": "2025-03-05T21:29:22.263Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-05T21:29:22.263Z"
},
"sessionToken": "string",
"challenges": {
"webAuthN": {
"publicKeyCredentialRequestOptions": {
"publicKey": {
"allowCredentials": [
{
"id": "ATmqBg-99qyOZk2zloPdJQyS2R7IkFT7v9Hoos_B_nM",
"type": "public-key"
}
],
"challenge": "GAOHYz2jE69kJMYo6Laij8yWw9-dKKgbViNhfuy0StA",
"rpId": "localhost",
"timeout": 300000,
"userVerification": "required"
}
}
},
"otpSms": "string",
"otpEmail": "string"
}
}
- Schema
- Example (from schema)
Schema
details
object
"The current token of the session, which is required for delete session, get session or the request of other resources."
challenges
object
{
"details": {
"sequence": "2",
"changeDate": "2025-03-05T21:29:22.263Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-05T21:29:22.263Z"
},
"sessionToken": "string",
"challenges": {
"webAuthN": {
"publicKeyCredentialRequestOptions": {
"publicKey": {
"allowCredentials": [
{
"id": "ATmqBg-99qyOZk2zloPdJQyS2R7IkFT7v9Hoos_B_nM",
"type": "public-key"
}
],
"challenge": "GAOHYz2jE69kJMYo6Laij8yWw9-dKKgbViNhfuy0StA",
"rpId": "localhost",
"timeout": 300000,
"userVerification": "required"
}
}
},
"otpSms": "string",
"otpEmail": "string"
}
}
Returned when the user does not have permission to access the resource.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL