---
title: "Upload Product Image Compat"
method: POST
path: "/v1/products/{product_id}/image"
tags: ["Products"]
---

# Upload Product Image Compat

`POST /v1/products/{product_id}/image`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/v1/products/{product_id}/image`
- Auth: HTTP bearer

Compat: upload image via old single-image endpoint.

## Path parameters

- `product_id` integer, required

## Headers

- `X-API-Key` string, nullable

## Response `201`

Successful Response

- ProductImageOut: Image metadata returned by the API (binary data served separately).
  - `id` integer, required
  - `image_filename` string, nullable
  - `image_content_type` string, nullable
  - `image_path` string, nullable
  - `source_url` string, nullable
  - `position` integer

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/rubenayla/apis/partle-api.md) · [All operations](https://skmtc.dev/rubenayla/apis/partle-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rubenayla/apis/partle-api/revisions/628cce2acee5?raw)
