Herald
OpenapiUser

Change password for current user

POST
/api/user/change-password

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

newPass*string
oldPass*string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/user/change-password" \  -H "Content-Type: application/json" \  -d '{    "newPass": "string",    "oldPass": "string"  }'
null
{  "code": "string",  "details": null,  "message": "string",  "requestId": "string",  "status": 0}
{  "code": "string",  "details": null,  "message": "string",  "requestId": "string",  "status": 0}
{  "code": "string",  "details": null,  "message": "string",  "requestId": "string",  "status": 0}