Skip to main content
Version: v1.0.0(int)

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​

HTTPcodeCondition
404not_foundNo such type.
422validation_failedDuplicate name.

Workflow​

Calls W072 Update material type.