Delete Machine Tasks
curl --request DELETE \
--url https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"MachineId": 123,
"TaskLutId": "<string>",
"SchedulingId": 123,
"DriverId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"DriverName": "<string>",
"TimezoneOffset": 123,
"ScheduleDate": "2023-11-07T05:31:56Z",
"StatusId": 123,
"Notes": "<string>",
"GeneratePickList": true,
"GeneratePickListTime": "<string>",
"GeneratePickListRange": 123,
"ScheduleNextWorkingDay": true,
"AssignedToPatternId": 123,
"AssignedToScheduleId": 123,
"IncompletionReason": "<string>",
"IncompletionReasonImages": [
{
"EntityPictureId": 123,
"EntityPictureUrl": "<string>"
}
],
"Pattern": {
"PatternId": 123,
"Name": "<string>",
"Description": "<string>",
"RepeatType": 123,
"RepeatInterval": 123,
"IsStatic": true,
"StartOn": "2023-11-07T05:31:56Z",
"EndOn": "2023-11-07T05:31:56Z",
"EndAfter": 123,
"RepeatOn": [
{
"Tasks": "<string>",
"Days": "<string>",
"Week": "<string>",
"MonthDay": "<string>",
"SetPos": "<string>",
"RecurrenceEx": "<string>",
"WeekNumber": "<string>"
}
]
},
"IsClustered": true,
"ClusterIds": "<string>",
"CreatedBy": 123,
"CreatedDt": "2023-11-07T05:31:56Z",
"UpdatedBy": 123,
"UpdatedDt": "2023-11-07T05:31:56Z",
"isMobile": true,
"isSeriesUpdate": true,
"originalDate": "<string>",
"IncompletionReasonId": 123,
"IncompletionReasonName": "<string>"
}
]Scheduling
Delete Machine Tasks
Deletes scheduled tasks for machines based on the provided query parameters such as SchedulingIds, MachineID, and date.
Delete Machine Tasks
curl --request DELETE \
--url https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/Scheduling/schedule/machine-tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"MachineId": 123,
"TaskLutId": "<string>",
"SchedulingId": 123,
"DriverId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"DriverName": "<string>",
"TimezoneOffset": 123,
"ScheduleDate": "2023-11-07T05:31:56Z",
"StatusId": 123,
"Notes": "<string>",
"GeneratePickList": true,
"GeneratePickListTime": "<string>",
"GeneratePickListRange": 123,
"ScheduleNextWorkingDay": true,
"AssignedToPatternId": 123,
"AssignedToScheduleId": 123,
"IncompletionReason": "<string>",
"IncompletionReasonImages": [
{
"EntityPictureId": 123,
"EntityPictureUrl": "<string>"
}
],
"Pattern": {
"PatternId": 123,
"Name": "<string>",
"Description": "<string>",
"RepeatType": 123,
"RepeatInterval": 123,
"IsStatic": true,
"StartOn": "2023-11-07T05:31:56Z",
"EndOn": "2023-11-07T05:31:56Z",
"EndAfter": 123,
"RepeatOn": [
{
"Tasks": "<string>",
"Days": "<string>",
"Week": "<string>",
"MonthDay": "<string>",
"SetPos": "<string>",
"RecurrenceEx": "<string>",
"WeekNumber": "<string>"
}
]
},
"IsClustered": true,
"ClusterIds": "<string>",
"CreatedBy": 123,
"CreatedDt": "2023-11-07T05:31:56Z",
"UpdatedBy": 123,
"UpdatedDt": "2023-11-07T05:31:56Z",
"isMobile": true,
"isSeriesUpdate": true,
"originalDate": "<string>",
"IncompletionReasonId": 123,
"IncompletionReasonName": "<string>"
}
]Authorizations
Query Parameters
Response
200 - application/json
The details of the deleted tasks.
Was this page helpful?