Update a task
AI agents: read /llms.txt; add .md to any page URL. This page as Markdown: /reference/tasks/v2-job-work-pipeline-update.md. Index of every page and the rules for every call: /llms.txt. Guides and concepts in one file: /llms-full.txt. OpenAPI: /openapi.json.
PUT/
Changes a task's name, note, preset, status, position, dates or assignees, and returns it. Send only what you change.
Send start_date and due_date together (both may be null). A start after the due date is a 422 ("Invalid date range. Due Date should be greater than Start Date."). Changing a task's dates resets the job's dates to span its dated tasks: the earliest task start and the latest task due date (none when no task has dates).
Assignees: unassign_all runs first, then assigned_users are added, then unassigned_users are removed. To change only the status, Change a task's status does the same and also returns the previous status.
Business rules
- A task's status must be a status of its task preset. An unknown preset is a 422 "Pipeline not found!"; a status from another preset a 422 "Pipeline Status not found!".
assigned_usersmust be members of your team (404 otherwise).unassigned_usersisn't checked: ids that aren't assigned are ignored.
Side effects
- Changing the dates may change the job's dates.
- Changing
status_idsends thework_pipeline.status_changedwebhook and records the status history. - Open Admin Portal pages refresh.
Path parameters
Your team slug, shown as Team ID next to your API key in Profile.
- Example
your-team
- Example
The task's hash id. Hash ids only: a unique key or a document number gives 404.
- Example
hpioY1gDBQZdbI
- Example
Request body
application/json, required.
assigned_usersarray of stringsUser hash ids to add.
colorstringA hex color. Validated but not saved.
due_datestring (date-time) | nullISO 8601, or null to clear. Send with
start_date.namestringnotestringpipeline_idstringMove the task to another task preset. Send a
status_idof that preset with it.positioninteger- Minimum -2147483648
- Maximum 2147483647
start_datestring (date-time) | nullISO 8601, or null to clear. Send with
due_date; dates change only when both are sent.status_idstringA status of the task's preset.
unassign_allboolean | nullRemove every assignee first.
unassigned_usersarray of stringsUser hash ids to remove.
More examples (1)
Move a task
curl -X PUT 'https://secure.yoprint.com/v2/api/store/your-team/v2/work_pipeline/hpioY1gDBQZdbI' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Accept: application/json' \ -H 'X-Yoprint-Decimal-Format: exact-v1' \ -H 'Content-Type: application/json' \ -d '{ "due_date": "2026-11-06T17:00:00Z", "start_date": "2026-11-06T09:00:00Z" }'Response
200Successful response.
A task.
Child fields (24)
assigned_usersarray of objectsWho is assigned.
Fields of each item (3)
avatar_urlstring | nullidstringThe user.
namestring
created_atstring (date-time)due_datestring (date-time) | nullTask due date. ISO 8601 with offset, or null.
idstringThe task.
job_idstringThe job.
job_is_rushboolean | integer | nulljob_item_countnumber | nulljob_namestring | nulljob_scoped_idstringThe job number with its prefix.
job_status_idstring | nullThe job's current status.
namestringnotestring | nullorder_idstringThe order.
order_namestring | nullorder_scoped_idstring | nullThe order number.
pipeline_idstringThe task preset it comes from.
positionintegerOrder among tasks; lower comes first. 0 when unset.
sales_orderobjectA summary of the job's order.
Child fields (14)
created_bystring | nullWho created the order.
cust_due_datestring (date-time) | nullOrder customer due (in-hand) date. ISO 8601 with offset, or null.
customer_idstring | nullThe customer.
customer_namestring | nulldue_datestring (date-time) | nullOrder production due date. ISO 8601 with offset, or null.
external_typestring | nullshopifywhen the order came from Shopify, else null.is_quotebooleanissue_datestring (date-time) | nullOrder issue date. ISO 8601 with offset, or null.
object_typestring | nullsales_orderorquote.ship_due_datestring (date-time) | nullOrder ship-by date. ISO 8601 with offset, or null.
shopify_deleted_externallybooleanshopify_deleted_externally_atstring (date-time) | nullWhen it was deleted in Shopify. ISO 8601 with offset, or null.
start_datestring (date-time) | nullOrder production start. ISO 8601 with offset, or null.
status_idstring | nullThe order status.
start_datestring (date-time) | nullTask start. ISO 8601 with offset, or null.
statusobjectA status: label, kind and place in the list.
Child fields (9)
colorstring | nullHex color.
customer_labelstringidstringThe status.
labelstringpipeline_idstringOnly on the statuses of a task preset (
rolepipeline): the task preset. Absent on other statuses.positionintegerIts place in the team's list: sort by it to find the next status.
rolestringWhich list it belongs to:
jobfor job statuses,pipelinefor the statuses of a task preset.- One of:
"order","quote","job","purchase_order","shipment","customer_message","pipeline"
- One of:
trashedbooleanThe status was deleted.
typestringThe kind of status:
start(Pending),pre_productionandin_progress(In Progress),end(Completed).- One of:
"start","pre_production","in_progress","end"
- One of:
status_completion_datestring (date-time) | nullWhen it reached a Completed status. ISO 8601 with offset, or null.
status_idstringThe task's status (a status of its task preset).
status_last_change_datestring (date-time) | nullWhen the status last changed. ISO 8601 with offset, or null.
updated_atstring (date-time)
Errors
401The API key is missing or wrong (
unauthenticated).403You are not allowed to do this.
api_access_not_in_plan: your team's plan doesn't include API access (Pro and above, with an active subscription or trial), so every request answers this until the team upgrades. When your role lacks the permission the operation needs, the body is only{"message": "Insufficient Permission"}. Other refusals use the error envelope, withunauthorizedoruser_is_not_authorized.404Not found.
page_not_found: the team slug is unknown, you are not a member of the team, or an id in the path is not one of this team's.code: null, with a message that starts "No query results for": there is no record with that id.- When
- The task or a user isn't your team's.
- Fix
- Check the ids.
422The request was refused and changed nothing.
validation_failedlists what to fix inerror.fields; other codes name a business rule, explained inerror.message. A few checks answer with only{"message": "..."}. An operation that calls another service (a payment provider, a carrier, an accounting app) can answerconnect_timeout("Please retry again") when that service does not answer in time: the change may or may not have happened there, so read the record back before you retry.- When
- Dates out of order or sent alone, an unknown preset, or a status from another preset.
- Fix
- Send both dates in order and a status of the task's preset.
Related
- GETGet a task
/v2/ api/ store/ {team_slug}/ v2/ work_pipeline/ {hash_id} - PUTChange a task's status
/v2/ api/ store/ {team_slug}/ v2/ work_pipeline/ {hash_id}/ status - PUTAssign or unassign a person on a task
/v2/ api/ store/ {team_slug}/ v2/ work_pipeline/ {hash_id}/ assign
