curl --request PUT \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs/{jobId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"customer_id": 1,
"job_type": "some string",
"billing": 1
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs/{jobId}"
payload = {
"customer_id": 1,
"job_type": "some string",
"billing": 1
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({customer_id: 1, job_type: 'some string', billing: 1})
};
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": {}
}{
"error": true,
"errors": [
"error message",
"error message"
]
}{
"message": "Unauthorized"
}{
"message": "Request URL or object not found"
}{
"message": "Internal Server Error"
}Update job by ID
Update a job
curl --request PUT \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs/{jobId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"customer_id": 1,
"job_type": "some string",
"billing": 1
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs/{jobId}"
payload = {
"customer_id": 1,
"job_type": "some string",
"billing": 1
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({customer_id: 1, job_type: 'some string', billing: 1})
};
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": {}
}{
"error": true,
"errors": [
"error message",
"error message"
]
}{
"message": "Unauthorized"
}{
"message": "Request URL or object not found"
}{
"message": "Internal Server Error"
}Authorizations
Path Parameters
Body
Existing customer id.
150Existing project id.
150Required if status_id is not set. 1 = new, 2 = in progress, 3 = pending, 4 = completed, 5 = canceled, 6 = on the way.
1, 2, 3, 4, 5, 6 Required if status is not set. Existing custom status id.
Required if status_id is set. Existing status workflow id.
Unix timestamp.
Unix timestamp.
Unix timestamp.
75005000Existing location id.
task, job Existing job template id.
Existing swms file id.
Existing maintenance agreement id.
Existing maintenance occurrence id.
Existing job recurring id.
Existing task category id.
Existing customer contact id.
Hide child attributes
Hide child attributes
1 = new, 2 = in progress, 3 = pending, 4 = completed, 5 = canceled, 6 = on the way.
1, 2, 3, 4, 5, 6 Unix timestamp.
Unix timestamp.
Array of tag ids.
Unix timestamp.
Unix timestamp.
Array of existing assets ids.
Existing Quickbooks Time class id.
Was this page helpful?