Contact
info-emea@leapwork.com
+45 35 25 14 14
+45 35 25 14 14
Leapwork ApS
Esplanaden 8C,
1263 Copenhagen K,
Denmark
Find tutorials, guides and use case examples in the
Learning center'Stop Schedule by Schedule ID' endpoint stops an already running schedule identified by the ScheduleId. On the successful stop of a schedule, the endpoint will return ‘true’.
The ScheduleId used as input can be obtained from the Get All Schedules endpoint
http://{controllerMachine}:{controllerPort}/api/v3/schedules/{scheduleId}/stop
Field | Type | Description | Comments |
---|---|---|---|
scheduleid | string | Unique identifier for Schedule | scheduleId can be fetched from response body of Get Schedule, it is referred as ‘Id’ there. |
curl -X PUT --header 'Accept: application/json' --header 'AccessKey: Mo87Nc4qDAtzJNDb' 'http://{controllerMachine}:{controllerPort}/api/v3/schedules/39f2b3e3-fa24-43e7-a2d6-38815128ac6c/stop'
$headers = @{}
$headers.Add("AccessKey","Mo87Nc4qDAtzJNDb")
$ScheduleID="39f2b3e3-fa24-43e7-a2d6-38815128ac6c"
Invoke-WebRequest -Uri "http://{controllerMachine}:{controllerPort}/api/v3/schedules/$ScheduleID/stop" -ContentType "application/json" -Headers $headers -Method PUT
Returns true after stopping the schedule
{ "$id": "1", "OperationCompleted": true } |
Field | Type | Description | Values |
---|---|---|---|
OperationCompleted | string | Returns ‘true’ if schedule is stopped else ‘false’ | true, false |
200 (OK)
404 (Not Found)
401 (Unauthorized)
400 (Bad Request)
405 (Method Not Allowed)
500 (Internal Server Error)
Leapwork ApS
Esplanaden 8C,
1263 Copenhagen K,
Denmark
©2022, LEAPWORK. All rights reserved. Legal