curl --request POST \
--url 'https://api.stateset.com/api/v1/production-batches/{id}/work-orders' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"work_order_ids": [
"string"
]
}'
{
"created_at": "string",
"id": "string",
"name": "string",
"status": "string",
"work_order_ids": [
"string"
]
}
Add a work orders
Add a work orders
POST
/
api
/
v1
/
production-batches
/
{id}
/
work-orders
curl --request POST \
--url 'https://api.stateset.com/api/v1/production-batches/{id}/work-orders' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"work_order_ids": [
"string"
]
}'
{
"created_at": "string",
"id": "string",
"name": "string",
"status": "string",
"work_order_ids": [
"string"
]
}
Path parameters
string
required
Production batch ID
Request body
WorkOrdersRequest
string[]
required
Responses
ProductionBatchResponse
curl --request POST \
--url 'https://api.stateset.com/api/v1/production-batches/{id}/work-orders' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"work_order_ids": [
"string"
]
}'
{
"created_at": "string",
"id": "string",
"name": "string",
"status": "string",
"work_order_ids": [
"string"
]
}
⌘I