Updated on 2024-07-30 GMT+08:00

Refreshing a Session

Function

Refresh a session.

URI

POST /koodrive/ose/v1/session/refresh

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Traceid

No

String

Message log trace ID. The value contains 58 bits.

language

No

String

Language code, which complies with the internationalization specifications. For example, en-US indicates English (United States). English (United States) is used by default.

x-session-id

Yes

String

Session ID.

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

code

String

Response code.

msg

String

Response information.

accessToken

String

Authentication.

Example Requests

Request for refreshing a session.

POST /koodrive/ose/v1/session/refresh

Authorization:Bearer+10f88d**********a544791e9ff
x-session-id:b49***********ee67d90c07be

Example Responses

Status code: 200

Session refresh result.

{
    "accessToken": Bearer+013b4daf12f4099a6eb74e2708000cb7a418409192f3e149,
    ,
    "code": 0,
    "msg": "success"
}

Status Codes

Status Code

Description

200

Session refresh result.