---
title: "View product media"
method: GET
path: "/api/v1/productMedia/{id}"
tags: ["Product Media"]
---

# View product media

`GET /api/v1/productMedia/{id}`

Returns details of a single product media

## Path parameters

- `id` string, required — Resource identifier.

## Response `200`

Operation completed successfully.

- object
  - `data` object
    - `id` string — Resource identifier.
    - `product` object — Reference to another resource
      - `id` string, required — Resource identifier.
    - `title` string, nullable
    - `description` string, nullable
    - `keyword` 'defaultImage' | 'printImage' | 'defaultGroupImage' | 'labelImage' | 'otherImage' | 'dataSheet' | 'certificateAttachment'
    - `sort` integer
    - `versions` object[]
      - `id` string — Resource identifier.
      - `version` integer
      - `url` string
      - `remark` string, nullable
      - `filename` string
      - `size` integer — The size of the image in bytes
      - `updatedAt` string, date-time — The date and time when the version was last updated.
    - `currentVersion` object
      - `id` string — Resource identifier.
      - `version` integer
      - `url` string
      - `remark` string, nullable
      - `filename` string
      - `size` integer — The size of the image in bytes
      - `updatedAt` string, date-time — The date and time when the version was last updated.
    - `updatedAt` string, date-time
  - `extra` object
    - `totalCount` integer, required — the total count of all items
    - `page` object, required — The pagination object containing the current page number and size
      - `number` integer, required — The current page number
      - `size` integer, required — The size of the pages

## Other responses

- `400` — IETF RFC 9457 Problem API compliant response
- `401` — Unable to authenticate the client
- `403` — Unable to authorize the client
- `404` — Resource was not found or not enough access privileges
- `406` — Requested resource representation does not exist.
- `429` — Too many API calls made.

---

[API](https://skmtc.net/xentral/apis/xentral-api.md) · [All operations](https://skmtc.net/xentral/apis/xentral-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xentral/xentral-api/versions/8a27ba392442/schema)
