POST
/
v1
/
work_order
/
create
curl --location --request POST 'https://api.stateset.com/v1/work_order' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
  "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

limit
string
required
This is the limit of the work orders.
offset
string
required
This is the offset of the work orders.
order_direction
string
required
This is the order direction of the work orders.

Response

id
uuid
Unique identifier for the work order (primary key)
number
integer
Number associated with the work order
site
string
Site or location where the work order is being executed
work_order_type
string
Type of the work order
location
string
Location or site where the work order is applicable
part
string
Part or item associated with the work order
order_number
string
Identifier or reference to the order associated with the work order
manufacture_order
string
Identifier or reference to the manufacturing order associated with the work order
status
string
Current status or state of the work order
created_by
string
Name or identifier of the person who created the work order
created_at
string
Date and time when the work order was created
updated_at
string
Date and time when the work order was last updated
issue_date
string
Date when the work order was issued
expected_completion_date
string
Expected completion date for the work order
priority
string
Priority level or urgency of the work order
memo
string
Memo or additional notes related to the work order
bill_of_materials_number
integer
Number associated with the bill of materials related to the work order
actual_labor_hours
number
Actual labor hours spent on the work order
standard_labor_hours
number
Standard labor hours for the work order
capacity_utilization_id
uuid
Identifier for related capacity utilization data
bill_of_materials_id
uuid
Identifier for related bill of materials
cogs_data_id
uuid
Identifier for related COGS (Cost of Goods Sold) data

Response

success
number
Indicates whether the call was successful. 1 if successful, 0 if not.
user_group
object
The contents of the user group