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

Parameters: update_job_status
NameTypeDescription
job_id integer required integer Job ID from list_jobs.
status string required string A status name from your build.

Request

cURL
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"}'
Python
result = client.call("simpro", "update_job_status", {"job_id":1,"status":"status"})
Node.js
const result = await cotlet.call('simpro', 'update_job_status', {"job_id":1,"status":"status"});
CLI
cotlet call simpro update_job_status --data '{"job_id":1,"status":"status"}'

Example response

JSON

{
  "job_id": 20871,
  "status": "In Progress",
  "previous_status": "Pending"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.