Przejdź do głównej zawartości

Pobierz postęp uruchomienia wsadowego

GET
/api/v3/runs/batchProgress/{id}
curl --request GET \
--url https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v3/runs/batchProgress/1 \
--header 'Authorization: Bearer <token>'

Zwraca postęp uruchomienia rozpoczętego przez /api/automaticScripts/start_batch.

id
wymagane
integer format: int64

The id of the run correlated with batch.

Success

Response that describes batch progress.

object
runId

Id of the run correlated to whole batch.

integer format: int64
batchId

Id of the batch.

integer format: int64
createdAt

Date and time when batch was created.

string format: date-time
ajsIds

Ids of AJSes ran in this batch.

Array<integer>
nullable
progress

Fraction of finished runs in this batch, in percents.

number format: double
orders

Descriptions of runs executed for each order in batch.

Array<object>
nullable

Description of runs executed for certain order in batch.

object
id

Id of the order.

integer format: int64
progress

Fraction of finished runs for this order, in percents.

number format: double
runs

Description of runs executed for certain order in batch.

Array<object>
nullable
object
id

Id of the run.

integer format: int64
nullable
ajsId

Id of the AJS.

integer format: int64
state

State of the run.

string
nullable
status

Status of the run.

string
nullable
errors
Array<string>
nullable