Skip to main content
POST
/
api
/
v1
/
production-lines
Create Production Line
curl --request POST \
  --url https://staging.cutmake.ai/api/v1/production-lines \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "workerCount": 0,
  "costPerMinuteVnd": "0.00",
  "capacityPerDay": 0,
  "shiftType": "regular",
  "isActive": true
}
'
{
  "id": "<string>",
  "name": "<string>",
  "workerCount": 123,
  "costPerMinuteVnd": "<string>",
  "capacityPerDay": 123,
  "shiftType": "regular",
  "isActive": true,
  "effectiveCostPerMinute": "<string>",
  "description": "<string>"
}

Headers

X-Org-Id
string | null

Body

application/json
name
string
required
description
string | null
workerCount
integer
default:0
Required range: x >= 0
costPerMinuteVnd
default:0.00
Required range: x >= 0
capacityPerDay
integer
default:0
Required range: x >= 0
shiftType
enum<string>
default:regular
Available options:
regular,
overtime,
weekend
isActive
boolean
default:true

Response

Successful Response

id
string
required
name
string
required
workerCount
integer
required
costPerMinuteVnd
string
required
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
capacityPerDay
integer
required
shiftType
enum<string>
required
Available options:
regular,
overtime,
weekend
isActive
boolean
required
effectiveCostPerMinute
string
required
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
description
string | null