Updated on 2026-04-16 GMT+08:00

Changing a Password

Function

Change a password.

URI

POST /koodrive/ose/v1/password/modify

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Traceid

No

String

Definition:

Service trace ID, which contains 58 bits.

Constraints:

N/A

Range:

The value contains 58 bits.

Default Value:

N/A

Authorization

Yes

String

Definition:

Access token. Token authentication is used to call KooDrive APIs. A token indicates the permission. When an API is called, the token is added to the request header to obtain the operation permission. Format: AT+{access_token}

Constraints:

N/A

Range:

N/A

Default Value:

N/A

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

oldPassword

Yes

String

Old password.

newPassword

Yes

String

New password.

userId

Yes

String

User ID.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

code

String

Error Codes

msg

String

Error description.

Example Requests

POST /koodrive/ose/v1/password/modify

{
  "oldPassword" : "123qweASD1",
  "newPassword" : "123qweASD13",
  "userId" : "1883425186359837185"
}

Example Responses

Status code: 200

Password change response

{
  "code" : 0,
  "msg" : "Success"
}

Status Codes

Status Code

Description

200

Password change response