OpenTV ENTera & OpenTV Platform Documentation
26.26_Q2 25.52_Q4 25.26_Q2 25.12_Q1 24.50_Q4 24.38_Q3 24.26_Q2 23.50_Q4 23.24_Q2 23.12_Q1 22.50_Q4 22.38_Q3 22.24_Q2
26.26_Q2 25.52_Q4 25.26_Q2 25.12_Q1 24.50_Q4 24.38_Q3 24.26_Q2 23.50_Q4 23.24_Q2 23.12_Q1 22.50_Q4 22.38_Q3 22.24_Q2

Getting all the user profile icons (operator)

Request

To get all the user profile icons that have been uploaded, send a GET request to:

Bash
https://<host>:<port>/imagemetadata/v1/profile

This is the operator call. Client applications get the same list with a client token – see Getting all the available user profile icons.

Headers

Mandatory arguments

None.

Other arguments

None.

Example

This request gets all the user profile icons:

Bash
https://<host>:<port>/imagemetadata/v1/profile

Response

A successful request returns an HTTP 200 status. The response body contains a results array, with an entry for each icon, and a count of the entries. Each entry has the following fields:

  • resourceId – the resource ID that the icon was uploaded with

  • aspect – the aspect ratio (1x1)

  • uri – where the image is stored

  • imageId – the image ID, which a client application uses to get the icon

For example:

JSON
{
  "count": 2,
  "results": [
    {
      "resourceId": "smileyface",
      "aspect": "1x1",
      "uri": "image-service/discrete/OpfProfile/smileyface/default-locale/OpfProfile_1x1_master",
      "imageId": "2971a79e-41eb-44b2-ae9a-4a8cc74e30f6"
    },
    {
      "resourceId": "angryface",
      "aspect": "1x1",
      "uri": "image-service/discrete/OpfProfile/angryface/default-locale/OpfProfile_1x1_master",
      "imageId": "43fcbfd9-118b-4980-b518-2b73daa0bad3"
    }
  ]
}

An unauthorised request returns an HTTP 401 status – for example, if the access token is invalid or has expired.

A forbidden request returns an HTTP 403 status – for example, if the access token is missing or the user does not have the adminRole role.

See also

For full details of this API, see the Image Metadata Service (IMDS) API documentation.