Skip to content

Upload product image

POST
/vendor/products/{id}/images

Загрузка изображения товара (max 10 MB, max 10 images per product)

Authorizations

sessionCookie

PHP session cookie (HTTP-only, Secure, SameSite=Lax)

Type
API Key (cookie: PARTIZAP_SESSION)
+
csrfToken

CSRF token from CSRF_TOKEN cookie. Required on POST/PUT/PATCH/DELETE for
endpoints declaring csrfToken in their security block. Unauthenticated
session-establishment endpoints (login, register, forgot-password,
reset-password, validate-reset-token, admin login, admin TOTP verify) are
exempt — they declare security: [] and accept POST without a CSRF token.

Type
API Key (header: X-CSRF-TOKEN)

Parameters

Path Parameters

id*

Product ID

Type
integer
Required

Request Body

multipart/form-data
object

Image file (max 10 MB)

Format"binary"

Responses

Image uploaded

application/json
JSON
{
  
"data": {
  
  
"id": 0,
  
  
"thumbnail_webp": "string",
  
  
"thumbnail_jpeg": "string",
  
  
"medium_webp": "string",
  
  
"medium_jpeg": "string",
  
  
"large_webp": "string",
  
  
"large_jpeg": "string",
  
  
"status": "string",
  
  
"is_primary": true,
  
  
"sort_order": 0
  
}
}

Playground

Server
Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI