Update job status
Set the status of a job.
PATCH https://cotlet.dev/api/v1/simpro/jobs/{job_id}/status
write Confirm
Sets the status to one of the status names in your build and returns the job. What Simpro does next follows your own status settings, and some statuses may be changed again by your workflow. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| job_id integer required | integer | Job ID from list_jobs. |
| status string required | string | A status name from your build. |
Request
curl -X PATCH https://cotlet.dev/api/v1/simpro/jobs/1/status \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"status"}' result = client.call("simpro", "update_job_status", {"job_id":1,"status":"status"}) const result = await cotlet.call('simpro', 'update_job_status', {"job_id":1,"status":"status"}); cotlet call simpro update_job_status --data '{"job_id":1,"status":"status"}' Example response
{
"job_id": 20871,
"status": "In Progress",
"previous_status": "Pending"
}