Przejdź do głównej zawartości

Zaktualizuj zdjęcia wielu obiektów

POST
/api/bulk
curl --request POST \
--url https://twoja-instancja-image-gallery-api.enterprise.sellrocket.pl/api/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "entities": [ { "entityName": "example", "entityId": "example", "pictures": [ { "slot": 1, "imageFile": "binary", "imageLink": "example" } ] } ], "replaceAll": true }'

Zmienia zdjęcia wielu obiektów w jednym żądaniu.

object
entities
Array<object>
nullable
object
entityName
string
nullable
entityId
string
nullable
pictures
Array<object>
nullable
object
slot
integer format: int32
imageFile
string format: binary
nullable
imageLink
string
nullable
replaceAll
boolean
Examplegenerated
{
"entities": [
{
"entityName": "example",
"entityId": "example",
"pictures": [
{
"slot": 1,
"imageFile": "binary",
"imageLink": "example"
}
]
}
],
"replaceAll": true
}

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