To change the password for a platform user:

  1. Get the authorization token:
    curl -k -X POST -H "accept: application/json" -H "Content-Type: application/json" 'https://domain.com/auth/v4/public/token' -d '{"email": "admin_email", "password": "admin_pass"}'
    CODE

    domain.com — domain name or IP address of the server with the platform

    admin_email — platform administrator's email

    admin_pass — platform administrator's password

    In response, you will get the message in the form:

    Example of response in JSON

    {
      "confirmed": true,
      "expires_at": null,
      "id": "6",
      "token": "4-e9726dd9-61d9-2940-add3-914851d2cb8a"
    }
    CODE

    Save the received token value.

  2. Perform the request:

    curl -k -X POST -H "x-xsrf-token: <auth_token>" -H "isp-box-instance: true" "https://domain.com/api/auth/v4/user/<user_id>/password" -d {"password":"<new_password>"}
    CODE

    domain.com — domain name or IP address of the server with the platform

    <auth_token> — authorization token

    <user_id> — user id or email

    <new_password> — new user password