Delete job by ID
curl --request DELETE \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs/{jobId} \
--header 'x-api-key: <api-key>'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs/{jobId}"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs/{jobId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": false,
"response": {}
}{
"message": "Unauthorized"
}{
"message": "Request URL or object not found"
}{
"message": "Internal Server Error"
}Jobs
Delete job by ID
The public API documents a delete operation for a job by ID; the reference does not state whether the job is archived or permanently removed.
Listen to this pageabout 1 min
DELETE
/
jobs
/
{jobId}
Delete job by ID
curl --request DELETE \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs/{jobId} \
--header 'x-api-key: <api-key>'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs/{jobId}"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs/{jobId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": false,
"response": {}
}{
"message": "Unauthorized"
}{
"message": "Request URL or object not found"
}{
"message": "Internal Server Error"
}This is a documented public API operation: a
DELETE request to /jobs/ followed by the job ID, with a 200 response described as the deleted record. The reference does not state whether the job is archived or permanently removed. In the FieldPulse web app, the Creating a Job FAQ says FieldPulse does not support permanently deleting a job and describes two alternatives: archiving the job, or moving it to the Canceled status.