Reset Password with Token


Reset the password of a user with the token.

Request Format


POST /app-portal-service/v2.3/password/reset?orgId

Request Parameters (Query)


Name

Mandatory/Optional

Data Type

Description

orgId

Mandatory

String

OU ID.

Request Parameters (Body)


Name

Mandatory/Optional

Data Type

Description

password

Mandatory

String

The new user password.

token

Mandatory

String

The token to reset the user password.

Response Parameters


Name

Data Type

Description

data

Data Struct

The results of resetting the password.

Data Struct


Name

Data Type

Description

success

Boolean

The results of resetting passwords, true for success, and false for failure.

Error Codes


Error Code

Description

31400

Required parameters are missing, the new password is the same as the old one or do not match OU password rules.

31403

The application does not have the permission to create or delete user accounts.

31404

The OU or user does not exist, the user is not in the OU, or the OU does not acquire the application.

31410

The token is invalid or expired.

Samples

Request Sample


url: /app-portal-service/v2.3/password/reset?orgId=your_org_ID

method: POST

{

  "password": "your_new_password",

  "token": "your_token"

}

Return Sample


{

  "code": 0,

  "message": "",

  "data": {

    "success": true

  }

}