W072: Update material type
Renames an existing material type. Triggered from Settings, Material types.
Steps
-
Load the type.
-
Check name uniqueness if changed.
-
Apply the patch. Call
Materials.updateMaterialType.
Returns
The updated type row.
Business rules
- Renames preserve history.
Errors
NotFoundError. The type was not found.ValidationError. Name collision.