E073: Delete material type
DELETE /api/material-types/:id
Removes a material type that no material references. Triggered from Settings, Material types.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Admin.
Request
No body.
Response — 200 OK
{ "deletedId": "uuid" }
Echo of the deleted type's id.
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such type. |
| 409 | in_use | Materials reference this type. |
Workflow
Calls W073 Delete material type.