Skip to main content
Skip table of contents

Updating both recording profile and account profile

Request

Sometimes, the CRM may need to apply both an account profile and a recording (quota) to accounts that already exist in OpenTV Video Platform. This may be necessary, for example, if you need to apply these profiles after:

  • Asking NAGRA to create a new account profile for a specific group of accounts, and
  • Creating a new recording profile

To apply both an account profile and a recording profile to an account in a single request, the CRM should send a PUT request to:

CODE
https://<host>:<port>/adm/v1/accounts/preHashedPassword/{uid}

In deployments that use NAGRA's Security Services Platform (SSP), this request must be made twice – once to OPF, and once to SSP.

The URLs of the two endpoints will be provided to you by NAGRA.

Headers

  • x-correlation-id – identifier for logging, to correlate messages across a call flow

  • Authorization – bearer token obtained in Getting an access token
  • nv-tenant-id – the tenant ID

  • Content-Type: application/json

Mandatory arguments

  • uid – the unique account ID (in URL), which is returned when you create an account
  • accountProfile – the ID of the account profile to be applied to the account
  • npvrProfileName – the recording (NPVR) profile to be applied to the account

    pvrStatus must also be set to ENABLED on the account for NPVR to be available to the user.

Other arguments

See PUT /v1/accounts/preHashedPassword/{uid } in the Account and Device Manager (ADM) API documentation.

Response

A successful request returns an HTTP 200 status.

A bad request returns an HTTP 400 status.

If the token is invalid, an HTTP 403 status is returned

If the tenant or account does not exist, the request returns an HTTP 404 status.

Example

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

See also

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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.