---
title: "Dodaje obraz produktu"
method: POST
path: "/images"
tags: ["Obrazy"]
---

# Dodaje obraz produktu

`POST /images`

Dodawanie nowego obrazu dla istniejącego produktu

## Request body

- CreateImageRequest — Struktura obrazu
  - `alt` string — Tekst alternatywny
  - `image_content` string — Obrazek w formacie png lub jpg zakodowany w base64
  - `order` integer — Kolejność wyświetlania zdjęć w danym produkcie
  - `product_id` integer — Identyfikator produktu
  - `title` string — Nazwa produktu

## Response `200`

Sukces

- object
  - `fotolister_id` integer — Identyfikator obrazu w systemie fotolister.pl
  - `image_id` integer — Identyfikator obrazu
  - `status` string

## Other responses

- `401` — Błąd autoryzacji

---

[API](https://skmtc.dev/sellasist/apis/sellasist-api.md) · [All operations](https://skmtc.dev/sellasist/apis/sellasist-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sellasist/sellasist-api/revisions/821a1ff699fb/schema)
