curl --request POST \
--url 'https://api.stateset.com/api/v1/production-batches' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"name": "Two-Person Tent",
"notes": "Two-person tent, green — replacement for damaged pole set.",
"work_order_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
}'
{
"created_at": "2026-08-31T14:22:05Z",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"status": "pending",
"work_order_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
}
Create a production batch
Create a production batch
POST
/
api
/
v1
/
production-batches
curl --request POST \
--url 'https://api.stateset.com/api/v1/production-batches' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"name": "Two-Person Tent",
"notes": "Two-person tent, green — replacement for damaged pole set.",
"work_order_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
}'
{
"created_at": "2026-08-31T14:22:05Z",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"status": "pending",
"work_order_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
}
Request body
CreateProductionBatchRequest
string
required
string,null
string[]
Response
ProductionBatchResponse
string
required
string
required
string
required
string
required
string[]
required
Status codes
| Code | Meaning |
|---|---|
201 | — |
400 | — |
curl --request POST \
--url 'https://api.stateset.com/api/v1/production-batches' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"name": "Two-Person Tent",
"notes": "Two-person tent, green — replacement for damaged pole set.",
"work_order_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
}'
{
"created_at": "2026-08-31T14:22:05Z",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"status": "pending",
"work_order_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
}
Last modified on August 31, 2026