Przejdź do głównej zawartości

Zaktualizuj zdjęcia obiektu

POST
/api/{entityName}/{entityId}
curl --request POST \
--url https://twoja-instancja-image-gallery-api.enterprise.sellrocket.pl/api/example/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'UploadImages=[ { "slot": 1, "imageFile": "binary", "imageLink": "example" } ]'

Dodaje lub podmienia zdjęcia przypisane do obiektu (np. produktu).

entityName
wymagane
string
entityId
wymagane
string
Typ treścimultipart/form-data
object
UploadImages
Array<object>
object
slot
integer format: int32
imageFile
string format: binary
nullable
imageLink
string
nullable

Success

Bad Request

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties

Client Error

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties

Server Error