OpenTV ENTera & OpenTV Platform Documentation

Update user credentials

Request

To update the password for a user, send a PUT request to:

http://<host>:<port>/adm/v1/accounts/<_id>

Headers

  • Content-Type: application/json

Mandatory Arguments

  • id - the id of the account to which the update is applied

Example

A PUT request with this payload changes the "password" for the specified user:

{
    "password":"resetpasswd"
}


Response

A successful request returns an HTTP 200 status.

An unsuccessful request returns an HTTP 400 status. The response includes details of the error.

Example

{
    "matchedCount": 1,
    "modifiedCount": 1
}

See also

For full details of this API, see Account and Device Manager (ADM) API documentation.