Get a job
Read one job with its services, appointments and notes.
GET https://cotlet.dev/api/v1/servicetrade/jobs/{job_id}
read
Returns the status, location, customer, the services (service requests) with their descriptions and statuses, the current appointment and the technicians on it, and the job notes. Use it right before changing a job to see what another user has done.
Parameters
| Name | Type | Description |
|---|---|---|
| job_id integer required | integer | Job id from list_jobs. |
Request
curl https://cotlet.dev/api/v1/servicetrade/jobs/1 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("servicetrade", "get_job", {"job_id":1}) const result = await cotlet.call('servicetrade', 'get_job', {"job_id":1}); cotlet call servicetrade get_job --data '{"job_id":1}' Example response
{
"id": 48213,
"number": 1042,
"name": "Fire pump test",
"type": "planned_maintenance",
"status": "new",
"display_status": "Unscheduled",
"location": {
"id": 5120,
"name": "Harbor Point Mall"
},
"services": [
{
"id": 77302,
"description": "Annual fire pump flow test",
"status": "open"
}
],
"appointments": [],
"notes": []
}