The operations a recipe's steps can reference, with their cost.
idintegercodestringUnique within your account.
costnumbernullableCost per qty. Requires cost:read; null means redacted, not zero.
namestringqtynumbernullableThe quantity cost is per, in the unit unit_of_measure_id.
unit_of_measure_idintegernullableResolve with GET /units-of-measure/{uom_id}.
/operationsmanufacturing:readThe operations recipe steps reference. cost requires cost:read.
searchstringnullableFree-text match on code or name.
codestringnullablePartial match on the code.
namestringnullablePartial match on the name.
sortstringnullableComma-separated field:direction pairs, e.g. id:desc. Sortable: code, 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/operations?limit=50" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": [
{
"id": 123,
"code": "SAMPLE-01",
"cost": 12.5,
"name": "Sample name",
"qty": 12.5,
"unit_of_measure_id": 123
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1,
"has_more": false
},
"order": "id:asc"
}/operations/{operation_id}manufacturing:readoperation_idintegerrequiredThe operation's id.
data.curl "https://public-api.nutrasoft.ca/v1/operations/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": {
"id": 123,
"code": "SAMPLE-01",
"cost": 12.5,
"name": "Sample name",
"qty": 12.5,
"unit_of_measure_id": 123
}
}/operationsmanufacturing:writecode is stored trimmed and upper-cased and is unique within your account; a duplicate is a 409.
codestringrequiredUnique within your account. Stored trimmed and upper-cased.
namestringrequiredcostnumbernullableCost per qty. Returned only to keys holding cost:read.
qtynumbernullableThe quantity cost is per, in the unit unit_of_measure_id.
unit_of_measure_idintegernullableOne of your units of measure or a shared one.
data.curl -X POST "https://public-api.nutrasoft.ca/v1/operations" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "SAMPLE-01",
"name": "Sample name"
}'{
"data": {
"id": 123,
"code": "SAMPLE-01",
"cost": 12.5,
"name": "Sample name",
"qty": 12.5,
"unit_of_measure_id": 123
}
}/operations/{operation_id}manufacturing:writeOmitted fields are left unchanged.
operation_idintegerrequiredThe operation's id.
codestringnullablecostnumbernullablenamestringnullableqtynumbernullableunit_of_measure_idintegernullabledata.curl -X PATCH "https://public-api.nutrasoft.ca/v1/operations/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "SAMPLE-01"
}'{
"data": {
"id": 123,
"code": "SAMPLE-01",
"cost": 12.5,
"name": "Sample name",
"qty": 12.5,
"unit_of_measure_id": 123
}
}/operations/{operation_id}manufacturing:writeRefused with 409 while a recipe step or a production run uses the operation. A HACCP process step that references it is unlinked.
operation_idintegerrequiredThe operation's id.
data.curl -X DELETE "https://public-api.nutrasoft.ca/v1/operations/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": {
"id": 123,
"code": "SAMPLE-01",
"cost": 12.5,
"name": "Sample name",
"qty": 12.5,
"unit_of_measure_id": 123
}
}