Machines and tools, and whether each one is in service.
idintegercodestringnamestringout_of_servicebooleanTrue when the equipment is unavailable for production.
warehouse_idintegernullableWhere it is. Resolve with GET /warehouses/{warehouse_id}.
/equipmentmanufacturing:readsearchstringnullableFree-text match on code or name.
codestringnullablePartial match on the code.
namestringnullablePartial match on the name.
include_out_of_servicebooleanSet false for only the equipment available for production.
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/equipment?limit=50" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": [
{
"id": 123,
"code": "SAMPLE-01",
"name": "Sample name",
"out_of_service": false,
"warehouse_id": 123
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1,
"has_more": false
},
"order": "id:asc"
}/equipment/{equipment_id}manufacturing:readequipment_idintegerrequiredThe equipment's id.
data.curl "https://public-api.nutrasoft.ca/v1/equipment/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": {
"id": 123,
"code": "SAMPLE-01",
"name": "Sample name",
"out_of_service": false,
"warehouse_id": 123
}
}/equipmentmanufacturing: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.
namestringrequiredout_of_servicebooleanTrue marks the equipment unavailable for production.
warehouse_idintegernullableWhere it is. One of your warehouses.
data.curl -X POST "https://public-api.nutrasoft.ca/v1/equipment" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "SAMPLE-01",
"name": "Sample name"
}'{
"data": {
"id": 123,
"code": "SAMPLE-01",
"name": "Sample name",
"out_of_service": false,
"warehouse_id": 123
}
}/equipment/{equipment_id}manufacturing:writeOmitted fields are left unchanged. A null warehouse_id clears it.
equipment_idintegerrequiredThe equipment's id.
codestringnullablenamestringnullableout_of_servicebooleannullablewarehouse_idintegernullabledata.curl -X PATCH "https://public-api.nutrasoft.ca/v1/equipment/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "SAMPLE-01"
}'{
"data": {
"id": 123,
"code": "SAMPLE-01",
"name": "Sample name",
"out_of_service": false,
"warehouse_id": 123
}
}/equipment/{equipment_id}manufacturing:writeRefused with 409 while a production line or run uses the equipment. Otherwise its logs, maintenance schedules and QC tasks are deleted with it; to keep them, set out_of_service instead.
equipment_idintegerrequiredThe equipment's id.
data.curl -X DELETE "https://public-api.nutrasoft.ca/v1/equipment/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": {
"id": 123,
"code": "SAMPLE-01",
"name": "Sample name",
"out_of_service": false,
"warehouse_id": 123
}
}