Initializing and Creating a Session
Function
Initialize and create a session.
URI
POST /koodrive/ose/v1/session/
Request 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. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
code |
Yes |
String |
Authorization code. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
code |
String |
Response code. |
msg |
String |
Response information. |
accessToken |
String |
Authorization code required by the service API. |
userId |
String |
User ID. |
userName |
String |
User account. |
Example Requests
Request for initializing a session.
POST /koodrive/ose/v1/session { "code": FrbMohdqi86v6sMZlFSSuG3E0_9RsDpL08BlYfNQPhvibLET266cQhDI_WczEXJOAoIoKGCdqN2shKX1yfqrVci8nSFdMlxljNFhoffVvH93uSzIoyFxK4P7yhY6fDXa }
Example Responses
Status code: 200
Session response information.
{ "accessToken": Bearer+013b4daf12f4099a6eb74e2708000cb7a418409192f3e149, , "userId": 369528171409614001, "userName": Tenant Administrator, "code": 0, "msg": "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
Session response information. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot