maintainSession
get
/ccstore/v1/metering/session
Maintain session. Checks the session token provided in the session_token-store cookie for its authenticity and expiration. If the X-CC-Session-Token header is is present, its value takes precedence over the cookie token for validation. Following validation, the server sets the session_token-store cookie in the response. If the current session token is valid, the same value is retained in the cookie. If the token is invalid or a new session is initiated, a new session is started and the session token is returned in the cookie.
Request
Supported Media Types
- application/json
Header Parameters
-
X-CC-Session-Token: string
The header provides an alternative method for transmitting session tokens when cookies are unsupported.
Response
Supported Media Types
- application/json
200 Response
The following model is returned upon successful completion of the operation.
Root Schema : maintainSession_response
Type:
Show Source
object
-
valid:
boolean
Whether the provided session token is valid.
Example Response (application/json)
{
"valid":false
}
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code