Delete Job
curl --request DELETE \
--url https://ontime-api.masternautconnect.com/jobs/job/delete/{jobNumber} \
--header 'x-connect-token: <x-connect-token>'import requests
url = "https://ontime-api.masternautconnect.com/jobs/job/delete/{jobNumber}"
headers = {"x-connect-token": "<x-connect-token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-connect-token': '<x-connect-token>'}};
fetch('https://ontime-api.masternautconnect.com/jobs/job/delete/{jobNumber}', 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://ontime-api.masternautconnect.com/jobs/job/delete/{jobNumber}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-connect-token: <x-connect-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://ontime-api.masternautconnect.com/jobs/job/delete/{jobNumber}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-connect-token", "<x-connect-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://ontime-api.masternautconnect.com/jobs/job/delete/{jobNumber}")
.header("x-connect-token", "<x-connect-token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ontime-api.masternautconnect.com/jobs/job/delete/{jobNumber}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-connect-token"] = '<x-connect-token>'
response = http.request(request)
puts response.read_body{
"job": {
"jobId": "<string>",
"jobNumber": "<string>",
"jobTitle": "<string>",
"clientName": "<string>",
"accountNumber": "<string>",
"contactName": "<string>",
"contactEmail": "<string>",
"contactPhone": "<string>",
"notes": "<string>",
"lat": 123,
"lng": 123,
"address": "<string>",
"statusChangeTimestamp": "<string>",
"statusChangeId": "<string>",
"scheduledStartDateTime": "<string>",
"jobDuration": "<string>",
"arrivalWindowStart": "<string>",
"arrivalWindowEnd": "<string>",
"personId": "<string>",
"vehicleId": "<string>",
"groupName": "<string>",
"personName": "<string>",
"vehicleName": "<string>",
"orderNumbers": [
"<string>"
],
"driverNotes": "<string>",
"statusHistory": [
{
"date": "<string>",
"personId": "<string>",
"name": "<string>",
"statusChangeId": "<string>"
}
],
"actualStart": "<string>",
"actualEnd": "<string>",
"overrideLat": 123,
"overrideLng": 123,
"jobHistory": [
{
"date": "<string>",
"personId": "<string>",
"name": "<string>",
"assignedPersonName": "<string>",
"assignedAssetName": "<string>"
}
],
"jobRadius": 123,
"eta": "<string>",
"etaDistanceKms": 123,
"lastEtaCalcTime": "<string>",
"jobTypeId": "<string>",
"jobType": {
"id": "<string>",
"label": "<string>",
"description": "<string>",
"global": true,
"used": true,
"disabled": true,
"key": "<string>",
"earliestStartTime": 123,
"latestStartTime": 123,
"duration": "<string>",
"notes": "<string>",
"resources": [
{
"name": "<string>",
"fileType": "<string>",
"storageUrl": "<string>",
"uploadUrl": "<string>",
"presignedGetUrl": "<string>"
}
],
"sendJobReportOnCompletion": true,
"workflowId": "<string>"
},
"jobPhotos": [
{
"date": "<string>",
"downloadUrl": "<string>"
}
],
"jobSignature": {
"date": "<string>",
"downloadUrl": "<string>",
"signeeName": "<string>"
},
"linkingId": "<string>",
"linkedJobDescription": "<string>",
"linkedJobIndex": "<string>",
"resources": [
{
"name": "<string>",
"fileType": "<string>",
"storageUrl": "<string>",
"uploadUrl": "<string>",
"presignedGetUrl": "<string>"
}
],
"subStatus": {
"key": "<string>",
"value": "<string>"
},
"lastServerTime": "<string>",
"visitResults": [
{
"jobScheduledStart": "<string>",
"taskAnswers": [
{
"title": "<string>",
"description": "<string>",
"key": "<string>",
"statusChangeId": "<string>",
"timestamp": "<string>",
"nextTaskKey": "<string>",
"onTransitionTo": "<string>",
"mandatory": true,
"includeInReport": true,
"value": {
"stringValues": [
"<string>"
],
"integerValue": 123,
"doubleValue": 123,
"blobValues": [
"<string>"
]
},
"onTransitionToLabel": "<string>",
"personId": "<string>",
"personName": "<string>"
}
]
}
],
"subStatusLabel": "<string>",
"statusLabel": "<string>"
},
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"csvUploadLink": "<string>"
}/job
Delete Job
DELETE request to delete a job. The response includes summary details of the job that has been deleted.
DELETE
/
job
/
delete
/
{jobNumber}
Delete Job
curl --request DELETE \
--url https://ontime-api.masternautconnect.com/jobs/job/delete/{jobNumber} \
--header 'x-connect-token: <x-connect-token>'import requests
url = "https://ontime-api.masternautconnect.com/jobs/job/delete/{jobNumber}"
headers = {"x-connect-token": "<x-connect-token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-connect-token': '<x-connect-token>'}};
fetch('https://ontime-api.masternautconnect.com/jobs/job/delete/{jobNumber}', 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://ontime-api.masternautconnect.com/jobs/job/delete/{jobNumber}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-connect-token: <x-connect-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://ontime-api.masternautconnect.com/jobs/job/delete/{jobNumber}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-connect-token", "<x-connect-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://ontime-api.masternautconnect.com/jobs/job/delete/{jobNumber}")
.header("x-connect-token", "<x-connect-token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ontime-api.masternautconnect.com/jobs/job/delete/{jobNumber}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-connect-token"] = '<x-connect-token>'
response = http.request(request)
puts response.read_body{
"job": {
"jobId": "<string>",
"jobNumber": "<string>",
"jobTitle": "<string>",
"clientName": "<string>",
"accountNumber": "<string>",
"contactName": "<string>",
"contactEmail": "<string>",
"contactPhone": "<string>",
"notes": "<string>",
"lat": 123,
"lng": 123,
"address": "<string>",
"statusChangeTimestamp": "<string>",
"statusChangeId": "<string>",
"scheduledStartDateTime": "<string>",
"jobDuration": "<string>",
"arrivalWindowStart": "<string>",
"arrivalWindowEnd": "<string>",
"personId": "<string>",
"vehicleId": "<string>",
"groupName": "<string>",
"personName": "<string>",
"vehicleName": "<string>",
"orderNumbers": [
"<string>"
],
"driverNotes": "<string>",
"statusHistory": [
{
"date": "<string>",
"personId": "<string>",
"name": "<string>",
"statusChangeId": "<string>"
}
],
"actualStart": "<string>",
"actualEnd": "<string>",
"overrideLat": 123,
"overrideLng": 123,
"jobHistory": [
{
"date": "<string>",
"personId": "<string>",
"name": "<string>",
"assignedPersonName": "<string>",
"assignedAssetName": "<string>"
}
],
"jobRadius": 123,
"eta": "<string>",
"etaDistanceKms": 123,
"lastEtaCalcTime": "<string>",
"jobTypeId": "<string>",
"jobType": {
"id": "<string>",
"label": "<string>",
"description": "<string>",
"global": true,
"used": true,
"disabled": true,
"key": "<string>",
"earliestStartTime": 123,
"latestStartTime": 123,
"duration": "<string>",
"notes": "<string>",
"resources": [
{
"name": "<string>",
"fileType": "<string>",
"storageUrl": "<string>",
"uploadUrl": "<string>",
"presignedGetUrl": "<string>"
}
],
"sendJobReportOnCompletion": true,
"workflowId": "<string>"
},
"jobPhotos": [
{
"date": "<string>",
"downloadUrl": "<string>"
}
],
"jobSignature": {
"date": "<string>",
"downloadUrl": "<string>",
"signeeName": "<string>"
},
"linkingId": "<string>",
"linkedJobDescription": "<string>",
"linkedJobIndex": "<string>",
"resources": [
{
"name": "<string>",
"fileType": "<string>",
"storageUrl": "<string>",
"uploadUrl": "<string>",
"presignedGetUrl": "<string>"
}
],
"subStatus": {
"key": "<string>",
"value": "<string>"
},
"lastServerTime": "<string>",
"visitResults": [
{
"jobScheduledStart": "<string>",
"taskAnswers": [
{
"title": "<string>",
"description": "<string>",
"key": "<string>",
"statusChangeId": "<string>",
"timestamp": "<string>",
"nextTaskKey": "<string>",
"onTransitionTo": "<string>",
"mandatory": true,
"includeInReport": true,
"value": {
"stringValues": [
"<string>"
],
"integerValue": 123,
"doubleValue": 123,
"blobValues": [
"<string>"
]
},
"onTransitionToLabel": "<string>",
"personId": "<string>",
"personName": "<string>"
}
]
}
],
"subStatusLabel": "<string>",
"statusLabel": "<string>"
},
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"csvUploadLink": "<string>"
}Was this page helpful?
⌘I
