Skip to main content
Skip table of contents

Modifying an existing profile

Request

To modify an existing user profile (for example, to change the icon or to set the preferred subtitle language), send a PUT request to:

CODE
https://<host>:<port>/userprofiles/v1/user/userprofiles/{profileId}

If the user profile that is in use is a child profile, it cannot be modified. If the client makes this request while a child profile is in use, the request will fail.

Some stuff

Headers

  • nv-authorizations– request authentication token

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

  • nv-tenant-id – the unique tenant ID. Only required in shared system deployments.

Mandatory arguments

  • profileId – the ID of the profile to be modified (in URL)

Optional arguments

  • name – the name of the user profile

  • childProfile – whether this is a child profile (true) or not (false)

  • pinPromptRequired – whether the client application should prompt for the parental PIN before allowing access to content/resources (true or false). That is, if this is true and ratings threshold is set, if the user attempts to access content with a rating equal to or greater than the threshold, they must be prompted for the parental PIN.
    (Note that it is the client that interprets whether the threshold is a “greater than” or a “greater than or equal to” value, as the client is responsible for deciding when to prompt for the parental PIN.)

  • preferredAudioLanguage – the preferred audio language for this user profile

  • preferredSubtitleLanguage – the preferred subtitle language for this user profile

  • ratingsThresholds – the ratings threshold(s) for the user profile. This is an array, each member of which consists of the following parameters:

    • ratingsBody – the abbreviated name of the ratings body

    • ratingsThreshold – the ratings threshold for this ratings body. When this profile is in used, content with an age rating greater than or equal to the specified threshold will be filtered out on the platform side and not sent to the client (except for EPG events, which will be displayed in the EPG but which cannot be viewed).
      (Note that it is the client that interprets whether the threshold is a “greater than” or a “greater than or equal to” value, as the client is responsible for deciding when to prompt for the parental PIN.)

  • iconName – the name of the icon (from Image Metadata Service) to be displayed for this profile (see Getting all the available user profile icons)

  • additionalProperties – additional properties. This is an array of key-value pairs, each consisting of two parameters:

    • name – the property’s name

    • value – the property’s value

If only certain parameters are specified, only these will be updated. The values of the other parameters will remain unchanged.

Response

A successful request returns an HTTP 200 status.

A bad request returns an HTTP 400 status.

A forbidden request returns an HTTP 403 status.

An invalid request returns an HTTP 404 status.

Example

A successful request returns a payload that looks like this:

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

See also

User Profiles Service (UPS) API documentation

JavaScript errors detected

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

If this problem persists, please contact our support.