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

W068: Update material

Edits a material's header fields. Triggered from Material Detail.

Steps​

  1. Load the material. Call Materials.getMaterialById.

  2. Check code uniqueness if changed.

  3. Validate type if changed. Confirm the new typeId exists.

  4. Apply the patch. Call Materials.updateMaterial.

Returns​

The updated material.

Business rules​

  • Code stays unique per org.

Errors​

  • NotFoundError. The material or the new type was not found.
  • ValidationError. Code collision.