PUT
/
v1
/
work_orders
/
:id
curl --location --request PUT 'https://api.stateset.com/v1/work_order' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "wo_ODkRWQtx9NVsRX",
    "work_order": {
        "bill_of_materials_number": "123",
        "created_at": "2021-01-01T00:00:00.000Z",
        "created_by": "John Doe",
        "expected_completion_date": "2021-01-01T00:00:00.000Z",
        "id": "wo_123",
        "issue_date": "2021-01-01T00:00:00.000Z",
        "location": "123",
        "manufacture_order": "123",
        "memo": "123",
        "number": "123",
        "order_number": "123",
        "part": "123",
        "priority": "123",
        "site": "123",
        "status": "123",
        "updated_at": "2021-01-01T00:00:00.000Z",
        "work_order_line_items": [
            {
                "id": "wo_123",
                "line_status": "123",
                "line_type": "123",
                "part_name": "123",
                "part_number": "123",
                "total_quantity": "123",
                "unit_quantity": "123",
                "work_order_number": "123"
            }
        ]
    }
}'
{
  {
    "bill_of_materials_number": "123",
    "created_at": "2021-01-01T00:00:00.000Z",
    "created_by": "John Doe",
    "expected_completion_date": "2021-01-01T00:00:00.000Z",
    "id": "wo_123",
    "issue_date": "2021-01-01T00:00:00.000Z",
    "location": "123",
    "manufacture_order": "123",
    "memo": "123",
    "number": "123",
    "order_number": "123",
    "part": "123",
    "priority": "123",
    "site": "123",
    "status": "123",
    "updated_at": "2021-01-01T00:00:00.000Z",
    "work_order_line_items": [
      {
        "id": "wo_123",
        "line_status": "123",
        "line_type": "123",
        "part_name": "123",
        "part_number": "123",
        "total_quantity": "123",
        "unit_quantity": "123",
        "work_order_number": "123"
      }
    ]
  }
}

Body

id
string
This is the id of the work order you want to update.

Response

bill_of_materials_number
string
Number associated with the bill of materials related to the work order
created_at
string
Date and time when the work order was created
created_by
string
Name or identifier of the person who created the work order
expected_completion_date
string
Expected completion date for the work order
id
string
Unique identifier for the work order
issue_date
string
Date when the work order was issued
location
string
Location or site where the work order is applicable
manufacture_order
string
Identifier or reference to the manufacturing order associated with the work order
memo
string
Memo or additional notes related to the work order
number
string
Number associated with the work order
order_number
string
Identifier or reference to the order associated with the work order
part
string
Part or item associated with the work order
priority
string
Priority level or urgency of the work order
site
string
Site or location where the work order is being executed
status
string
Current status or state of the work order
updated_at
string
Date and time when the work order was last updated
curl --location --request PUT 'https://api.stateset.com/v1/work_order' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "wo_ODkRWQtx9NVsRX",
    "work_order": {
        "bill_of_materials_number": "123",
        "created_at": "2021-01-01T00:00:00.000Z",
        "created_by": "John Doe",
        "expected_completion_date": "2021-01-01T00:00:00.000Z",
        "id": "wo_123",
        "issue_date": "2021-01-01T00:00:00.000Z",
        "location": "123",
        "manufacture_order": "123",
        "memo": "123",
        "number": "123",
        "order_number": "123",
        "part": "123",
        "priority": "123",
        "site": "123",
        "status": "123",
        "updated_at": "2021-01-01T00:00:00.000Z",
        "work_order_line_items": [
            {
                "id": "wo_123",
                "line_status": "123",
                "line_type": "123",
                "part_name": "123",
                "part_number": "123",
                "total_quantity": "123",
                "unit_quantity": "123",
                "work_order_number": "123"
            }
        ]
    }
}'
{
  {
    "bill_of_materials_number": "123",
    "created_at": "2021-01-01T00:00:00.000Z",
    "created_by": "John Doe",
    "expected_completion_date": "2021-01-01T00:00:00.000Z",
    "id": "wo_123",
    "issue_date": "2021-01-01T00:00:00.000Z",
    "location": "123",
    "manufacture_order": "123",
    "memo": "123",
    "number": "123",
    "order_number": "123",
    "part": "123",
    "priority": "123",
    "site": "123",
    "status": "123",
    "updated_at": "2021-01-01T00:00:00.000Z",
    "work_order_line_items": [
      {
        "id": "wo_123",
        "line_status": "123",
        "line_type": "123",
        "part_name": "123",
        "part_number": "123",
        "total_quantity": "123",
        "unit_quantity": "123",
        "work_order_number": "123"
      }
    ]
  }
}