E072: Update material type
PATCH /api/material-types/:id
Renames an existing material type or changes its sortOrder. Triggered from Settings, Material types.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Admin.
Request
{ "name": "Raw", "sortOrder": 1 }
Both fields are optional; sortOrder is editable here.
Response — 200 OK
{ "id": "uuid", "name": "Raw", "sortOrder": 1 }
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such type. |
| 422 | validation_failed | Duplicate name. |
Workflow
Calls W072 Update material type.