Knowledge base
Tips and tricks Best practice guides, FAQ & more
Find tutorials, guides and use case examples in the
Learning center'Get Run by Id' returns all information about a scheduled run identified by the RunId.
http://{controllerMachine}:{controllerPort}/api/v4/run/{runId}
Field | Type | Description | Comment |
---|---|---|---|
runId | string | The runId is a unique Id for the individual run instance of a schedule | The runId can be fetched from the Response Body of the Run Schedule Now endpoint. |
curl -X GET --header 'Accept: application/json' --header 'AccessKey: Mo87Nc4qDAtzJNDb' 'http://{controllerMachine}:{controllerPort}/api/v4/run/884aa35d-2ff0-48c5-a056-be338d7c649c'
$headers = @{}
$headers.Add("AccessKey","Mo87Nc4qDAtzJNDb")
Invoke-WebRequest -Uri "http://{controllerMachine}:{controllerPort}/api/v4/run/884aa35d-2ff0-48c5-a056-be338d7c649c" -ContentType "application/json" -Headers $headers -Method GET
A list of all Schedule items is returned in the JSON response.
{ |
Field | Type | Description | Values |
---|---|---|---|
$id | string | Internal ID of object. | |
runId | string | Unique Id for an individual run instance of a schedule | |
Schedule {} | ScheduleIntegrationInfo | ||
ScheduleIntegrationInfo | Object | Object holds values for ScheduleId | |
$id | string | Internal ID of object | |
ScheduleId | string | ScheduleID | |
ScheduleTitle | string | Title of the schedule | |
Status | string | Status of the schedule | "Finished": Finished is returned when all flows in schedule/run have finished their execution. "Executing": Executing is returned when the schedule/run is currently executing flow(s). "Queued": Queued is returned when all environments are busy. The schedule will run when one or more of the environments in the schedule becomes idle. |
Failed | integer | Failed count of flows | |
Total | integer | Total count of flows | |
ExecutionTotalTime | string | Total time of flow execution | |
ExecutionMilliseconds | number | Total time of flow execution in milliseconds | |
ExecutionSeconds | number | Total time of flow execution in seconds | |
CreatedAt | datetime | date time of creation of run | |
RunType | string | type of run Manual/Schedule |
200 (OK)
404 (Not Found)
401 (Unauthorized)
400 (Bad Request)
405 (Method Not Allowed)
500 (Internal Server Error)
©2024, Leapwork. All rights reserved.