Materials Upsert Grade Override
materials_upsert_grade_overrideUpsert your organization's master-data layer for a grade.
Creates the org's override row for the grade when none exists,
otherwise updates it in place. Identification fields
(internal_code, trade_name, notes) follow patch
semantics — only keys present in the body are touched, null
clears. properties is validated against the closed vocabulary
(strength, hardness, elongation, Charpy toughness per test temperature,
stiffness, thermal conductivity, melting point, carbon equivalent —
every key sanity-ranged in its own unit);
a numeric value overrides the catalogue figure, null clears your
override so the catalogue figure applies again.
Property overrides are quoting/display master data — they do NOT change the physics inputs (density, ISO 513 group stay canonical) and they do NOT change €/kg (that lives in the environment rates).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Free-text notes attached to this material by the organization; null clears them. | |
| grade_id | Yes | ||
| properties | No | Property overrides keyed by the closed vocabulary — strength (yield_mpa, tensile_mpa), hardness (hardness_hb, hardness_hrc), ductility (elongation_pct), toughness (charpy_j_20c … charpy_j_m50c), stiffness and thermal (elastic_modulus_gpa, thermal_conductivity_w_mk, melting_point_c) and weldability (carbon_equivalent_ceq). A numeric value overrides the catalogue figure; null clears your override so the catalogue figure applies again. Keys not mentioned are left unchanged. | |
| trade_name | No | Vendor trade name (e.g. 'Inconel 718'); null clears it. | |
| internal_code | No | Org-internal SKU / part code for this material; null clears it. |