Create a job
curl --request POST \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"customer_id": "",
"project_id": "",
"job_type": "",
"subtitle": "",
"status": "",
"status_id": "",
"status_workflow_id": "",
"start_time": "",
"end_time": "",
"due_date": "",
"billing": "",
"notes": "",
"field_notes": "",
"location_id": "",
"generate_invoice": "",
"type": "",
"is_template": "",
"in_progress_status_log": "",
"template_id": "",
"hazardco_swms_id": "",
"maintenance_agreement_id": "",
"maintenance_occurrence_id": "",
"recurring_parent_id": "",
"task_category_id": "",
"customer_contact_id": "",
"assignments": [
{
"team_id": "",
"assigned_members": ""
}
],
"customfields": [
{
"id": "",
"field_instance_id": "",
"value": ""
},
{
"id": "",
"field_instance_id": "",
"value": ""
}
],
"visits": [
{
"status": "",
"title": "",
"subtitle": "",
"is_visible": "",
"start_time": "",
"end_time": ""
}
],
"tags": "",
"customer_arrival_window_start_time": "",
"customer_arrival_window_end_time": "",
"asset_ids": "",
"qb_time_class_id": ""
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs"
payload = {
"customer_id": "",
"project_id": "",
"job_type": "",
"subtitle": "",
"status": "",
"status_id": "",
"status_workflow_id": "",
"start_time": "",
"end_time": "",
"due_date": "",
"billing": "",
"notes": "",
"field_notes": "",
"location_id": "",
"generate_invoice": "",
"type": "",
"is_template": "",
"in_progress_status_log": "",
"template_id": "",
"hazardco_swms_id": "",
"maintenance_agreement_id": "",
"maintenance_occurrence_id": "",
"recurring_parent_id": "",
"task_category_id": "",
"customer_contact_id": "",
"assignments": [
{
"team_id": "",
"assigned_members": ""
}
],
"customfields": [
{
"id": "",
"field_instance_id": "",
"value": ""
},
{
"id": "",
"field_instance_id": "",
"value": ""
}
],
"visits": [
{
"status": "",
"title": "",
"subtitle": "",
"is_visible": "",
"start_time": "",
"end_time": ""
}
],
"tags": "",
"customer_arrival_window_start_time": "",
"customer_arrival_window_end_time": "",
"asset_ids": "",
"qb_time_class_id": ""
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customer_id: '',
project_id: '',
job_type: '',
subtitle: '',
status: '',
status_id: '',
status_workflow_id: '',
start_time: '',
end_time: '',
due_date: '',
billing: '',
notes: '',
field_notes: '',
location_id: '',
generate_invoice: '',
type: '',
is_template: '',
in_progress_status_log: '',
template_id: '',
hazardco_swms_id: '',
maintenance_agreement_id: '',
maintenance_occurrence_id: '',
recurring_parent_id: '',
task_category_id: '',
customer_contact_id: '',
assignments: [{team_id: '', assigned_members: ''}],
customfields: [
{id: '', field_instance_id: '', value: ''},
{id: '', field_instance_id: '', value: ''}
],
visits: [
{
status: '',
title: '',
subtitle: '',
is_visible: '',
start_time: '',
end_time: ''
}
],
tags: '',
customer_arrival_window_start_time: '',
customer_arrival_window_end_time: '',
asset_ids: '',
qb_time_class_id: ''
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": true,
"errors": [
"error message",
"error message"
]
}{
"message": "Unauthorized"
}{
"message": "Request URL not found"
}{
"message": "Internal Server Error"
}Jobs
Create a job
Create a job
POST
/
jobs
Create a job
curl --request POST \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"customer_id": "",
"project_id": "",
"job_type": "",
"subtitle": "",
"status": "",
"status_id": "",
"status_workflow_id": "",
"start_time": "",
"end_time": "",
"due_date": "",
"billing": "",
"notes": "",
"field_notes": "",
"location_id": "",
"generate_invoice": "",
"type": "",
"is_template": "",
"in_progress_status_log": "",
"template_id": "",
"hazardco_swms_id": "",
"maintenance_agreement_id": "",
"maintenance_occurrence_id": "",
"recurring_parent_id": "",
"task_category_id": "",
"customer_contact_id": "",
"assignments": [
{
"team_id": "",
"assigned_members": ""
}
],
"customfields": [
{
"id": "",
"field_instance_id": "",
"value": ""
},
{
"id": "",
"field_instance_id": "",
"value": ""
}
],
"visits": [
{
"status": "",
"title": "",
"subtitle": "",
"is_visible": "",
"start_time": "",
"end_time": ""
}
],
"tags": "",
"customer_arrival_window_start_time": "",
"customer_arrival_window_end_time": "",
"asset_ids": "",
"qb_time_class_id": ""
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs"
payload = {
"customer_id": "",
"project_id": "",
"job_type": "",
"subtitle": "",
"status": "",
"status_id": "",
"status_workflow_id": "",
"start_time": "",
"end_time": "",
"due_date": "",
"billing": "",
"notes": "",
"field_notes": "",
"location_id": "",
"generate_invoice": "",
"type": "",
"is_template": "",
"in_progress_status_log": "",
"template_id": "",
"hazardco_swms_id": "",
"maintenance_agreement_id": "",
"maintenance_occurrence_id": "",
"recurring_parent_id": "",
"task_category_id": "",
"customer_contact_id": "",
"assignments": [
{
"team_id": "",
"assigned_members": ""
}
],
"customfields": [
{
"id": "",
"field_instance_id": "",
"value": ""
},
{
"id": "",
"field_instance_id": "",
"value": ""
}
],
"visits": [
{
"status": "",
"title": "",
"subtitle": "",
"is_visible": "",
"start_time": "",
"end_time": ""
}
],
"tags": "",
"customer_arrival_window_start_time": "",
"customer_arrival_window_end_time": "",
"asset_ids": "",
"qb_time_class_id": ""
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customer_id: '',
project_id: '',
job_type: '',
subtitle: '',
status: '',
status_id: '',
status_workflow_id: '',
start_time: '',
end_time: '',
due_date: '',
billing: '',
notes: '',
field_notes: '',
location_id: '',
generate_invoice: '',
type: '',
is_template: '',
in_progress_status_log: '',
template_id: '',
hazardco_swms_id: '',
maintenance_agreement_id: '',
maintenance_occurrence_id: '',
recurring_parent_id: '',
task_category_id: '',
customer_contact_id: '',
assignments: [{team_id: '', assigned_members: ''}],
customfields: [
{id: '', field_instance_id: '', value: ''},
{id: '', field_instance_id: '', value: ''}
],
visits: [
{
status: '',
title: '',
subtitle: '',
is_visible: '',
start_time: '',
end_time: ''
}
],
tags: '',
customer_arrival_window_start_time: '',
customer_arrival_window_end_time: '',
asset_ids: '',
qb_time_class_id: ''
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/jobs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": true,
"errors": [
"error message",
"error message"
]
}{
"message": "Unauthorized"
}{
"message": "Request URL not found"
}{
"message": "Internal Server Error"
}Authorizations
Body
application/json
The body is of type object.
Response
Successful response
Was this page helpful?