Skip to content

Delete Manufacturing Order

DELETE /api/manufacturing-order/{id}

Required privilege: Manufacturing / Edit CSRF header required: X-XSRF-TOKEN

Permanently deletes a manufacturing order and all its line items.


Path Parameters

Parameter Type Required Description
id integer Yes Internal MO identifier

Errors

Status Code Description
400 ManufacturingOrderList.NotFound No MO with this ID
400 ManufacturingOrderList.StillInUse MO referenced by other records
403 User.NotPrivileged Insufficient privilege

Code Examples

CSRF=$(grep csrf_access_token cookies.txt | awk '{print $NF}')
curl -b cookies.txt -X DELETE https://acme.knosc.com/api/manufacturing-order/55 \
  -H "X-XSRF-TOKEN: $CSRF"