Zleć aktualizację zdjęć wielu obiektów
POST
/api/v2/schedule-bulk-update
const url = 'https://twoja-instancja-image-gallery-api.enterprise.sellrocket.pl/api/v2/schedule-bulk-update';const form = new FormData();form.append('Entities', '[ { "entityName": "example", "entityId": "example", "pictures": [ { "slot": 1, "imageFile": "binary", "imageLink": "example" } ] } ]');form.append('ReplaceAll', 'true');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://twoja-instancja-image-gallery-api.enterprise.sellrocket.pl/api/v2/schedule-bulk-update \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'Entities=[ { "entityName": "example", "entityId": "example", "pictures": [ { "slot": 1, "imageFile": "binary", "imageLink": "example" } ] } ]' \ --form ReplaceAll=trueAsynchronicznie aktualizuje zdjęcia wielu obiektów; stan sprawdzisz przez /api/jobs/picture-update/{id}. Zalecane przy dużych wolumenach.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”Typ treścimultipart/form-data
object
Entities
Array<object>
object
entityName
string
entityId
string
pictures
Array<object>
object
slot
integer format: int32
imageFile
string format: binary
imageLink
string
ReplaceAll
boolean
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Accepted
Bad Request
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
