The lines a production run is scheduled on.
idintegerdescriptionstringnullablenamestringwarehouse_idintegernullable/production-linesmanufacturing:readDeleted lines are not returned.
searchstringnullableFree-text match.
namestringnullablePartial match on the name.
sortstringnullableComma-separated field:direction pairs, e.g. id:desc. Sortable: id, name. id is always added last, so paging is stable.
limitintegerRows to return. Maximum 200.
offsetintegerRows to skip. Maximum 10000: to read further, narrow the filters or page with updated_since.
data, with pagination.curl "https://public-api.nutrasoft.ca/v1/production-lines?limit=50" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": [
{
"id": 123,
"description": "string",
"name": "Sample name",
"warehouse_id": 123
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1,
"has_more": false
},
"order": "id:asc"
}/production-lines/{production_line_id}manufacturing:readproduction_line_idintegerrequiredThe line's id.
data.curl "https://public-api.nutrasoft.ca/v1/production-lines/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": {
"id": 123,
"description": "string",
"name": "Sample name",
"warehouse_id": 123
}
}/production-linesmanufacturing:writeThe name is unique within your account; a duplicate is a 409. Equipment and employees are assigned in NutraSoft.
namestringrequiredUnique within your account.
descriptionstringnullablewarehouse_idintegernullableOne of your warehouses.
data.curl -X POST "https://public-api.nutrasoft.ca/v1/production-lines" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Sample name"
}'{
"data": {
"id": 123,
"description": "string",
"name": "Sample name",
"warehouse_id": 123
}
}/production-lines/{production_line_id}manufacturing:writeOmitted fields are left unchanged. A null description or warehouse_id clears it.
production_line_idintegerrequiredThe line's id.
descriptionstringnullablenamestringnullablewarehouse_idintegernullabledata.curl -X PATCH "https://public-api.nutrasoft.ca/v1/production-lines/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"description": "string"
}'{
"data": {
"id": 123,
"description": "string",
"name": "Sample name",
"warehouse_id": 123
}
}/production-lines/{production_line_id}manufacturing:writeThe line is soft-deleted: runs that reference it keep it, and it leaves the list. Its per-product capacities are removed.
production_line_idintegerrequiredThe line's id.
data.curl -X DELETE "https://public-api.nutrasoft.ca/v1/production-lines/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": {
"id": 123,
"description": "string",
"name": "Sample name",
"warehouse_id": 123
}
}