---
title: "Set Task Work Order"
method: PUT
path: "/api/v1/bom/tasks/{task_id}/work-order"
tags: ["v1", "BOM Tree"]
---

# Set Task Work Order

`PUT /api/v1/bom/tasks/{task_id}/work-order`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/bom/tasks/{task_id}/work-order`
- Auth: none declared

Put a task on a work order (or take it off with work_order_id null).

Scope is the WORK ORDER's job when attaching, and the task's own job when
detaching; the database refuses a task from another job either way.

## Path parameters

- `task_id` integer, required

## Request body

- SetTaskWorkOrderBody: Attach a task to a work order; null detaches it.
  - `work_order_id` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-09** `d9ef00c0253a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/changes/api/v1/bom/tasks/:task_id/work-order/put.md)

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
