Skip to content

Update account password

UpdateAccountPassword

Description: Updates an account password through the TCP Server API.

Access

Requires one of:

  • SESSION_MANAGER
  • SESSION_ADMIN
  • SESSION_DEALER

Request Parameters

Name Type Required Description
login int Yes Account login
password string Yes New account password, length 6..64

Request Example

{
  "command": "UpdateAccountPassword",
  "extID": "pwd-1",
  "__token": "manager-jwt",
  "data": {
    "login": 123456,
    "password": "newSecret123"
  }
}

Response Parameters

In the raw TCP response envelope, the fields below are returned inside data.

Name Type Description
login string Returns "OK" when the password was updated

Response Example

{
  "extID": "pwd-1",
  "status": 200,
  "data": {
    "login": "OK"
  }
}

Errors

Status Error Description
400 INVALID_DATA Validation failed
401 UPDATE_PASSWORD_ERROR Password update failed