Pobierz uruchomienia zakończone poprawnie
GET
/api/v1/runs/finished
const url = 'https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v1/runs/finished?offset=0&limit=100';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v1/runs/finished?offset=0&limit=100' \ --header 'Authorization: Bearer <token>'Zwraca uruchomienia, które zakończyły się normalnie (bez wymuszonego zatrzymania).
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”offset
integer format: int32
Number of runs to skip.
limit
integer format: int32
Number of runs to take.
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
object
list
Array<object>
Response that describes run.
object
id
Id of the run.
integer format: int64
scriptId
Id of the script.
integer format: int64
createdAt
Date and time when run was created.
string format: date-time
state
State of the run.
string
parameters
Parameters of the run. They will be passed to the script in object with name data.
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
pageNumber
integer format: int32
total
integer format: int32
object
list
Array<object>
Response that describes run.
object
id
Id of the run.
integer format: int64
scriptId
Id of the script.
integer format: int64
createdAt
Date and time when run was created.
string format: date-time
state
State of the run.
string
parameters
Parameters of the run. They will be passed to the script in object with name data.
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
pageNumber
integer format: int32
total
integer format: int32
Examplegenerated
{ "list": [ { "id": 1, "scriptId": 1, "createdAt": "2026-04-15T12:00:00Z", "state": "example", "parameters": { "additionalProperty": {} } } ], "pageNumber": 1, "total": 1}object
list
Array<object>
Response that describes run.
object
id
Id of the run.
integer format: int64
scriptId
Id of the script.
integer format: int64
createdAt
Date and time when run was created.
string format: date-time
state
State of the run.
string
parameters
Parameters of the run. They will be passed to the script in object with name data.
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
pageNumber
integer format: int32
total
integer format: int32
Examplegenerated
{ "list": [ { "id": 1, "scriptId": 1, "createdAt": "2026-04-15T12:00:00Z", "state": "example", "parameters": { "additionalProperty": {} } } ], "pageNumber": 1, "total": 1}
