To edit a user's password:
This endpoint provides for editing a user's password. It is dependent upon either the user being logged in (using a persistent login token as provided by the /user/login endpoint) or a password initialization token (as delivered by the /user/pwd/init endpoint).
Provide the input field(s) below as a JSON-encoded data object:
|token||string||128-byte password initialization token.||✓|
|pwd||string||The user's desired password, being 8-72 bytes in length.|
data object provided by this endpoint includes:
|id||string||The UUID of the user for which data is being provided.|
|token||string||128-byte persistent login token.|
If the user's password is edited, the password initialization token for this user is deleted and the persistent login token identified with the user, and the developer key, is updated to that provided by this endpoint.
If there is an endpoint transaction failure, or a problem with user input data, an
error is provided:
|init_token_not_provided||The user is not logged in and a password initialization
|invalid_password||The desired user password is not valid.|
|user_not_identified||The user login or password initialization token provided is not identified with both an existing user and the developer key in use.|
If an error is not described on this page, the platform-wide error table provides further information.