---
title: "Create product media"
method: POST
path: "/api/v1/productMedia"
tags: ["Product Media"]
---

# Create product media

`POST /api/v1/productMedia`

Creates new product media

## Request body

- object
  - `product` object — Reference to another resource
    - `id` string, required — Resource identifier.
  - `title` string, nullable
  - `description` string, nullable
  - `keyword` 'defaultImage' | 'printImage' | 'labelImage' | 'otherImage'
  - `fileName` string
  - `fileContent` string, byte — A base64 encoded image. Supported image formats JPEG, PNG

## Response `201`

Resource successfully created response

## Other responses

- `400` — IETF RFC 9457 Problem API compliant response
- `401` — Unable to authenticate the client
- `403` — IETF RFC 9457 Problem API compliant response
- `415` — Resource representation send in the request is not supported.
- `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/revisions/8a27ba392442/schema)
