---
title: "Update a material by ID"
method: PATCH
path: "/materials/{material_id}"
tags: ["Materials"]
---

# Update a material by ID

`PATCH /materials/{material_id}`

Update an existing material identified by its ID.

Only materials in the current organization can be updated.

## Path parameters

- `material_id` string, required

## Request body

- UpdateMaterial — Model for updating an existing material. All fields are optional.
  - `name` string, nullable — New name of the material
  - `definition` object, nullable — New material definition
  - `manufacturer` string, nullable — New manufacturer
  - `product_id` string, nullable — New product ID

## Response `200`

Successful Response

- Material — Model representing a material as returned by the API.
  - `name` string, required — Name of the material
  - `definition` object, nullable — Material definition (formula, type, constituents)
  - `manufacturer` string, nullable — Manufacturer of the material
  - `product_id` string, nullable — Supplier product ID
  - `id` string, required — Unique identifier for the material
  - `organization_id` string, required — Organization ID of the material
  - `project_id` string, required — Project the material is scoped to, derived from the cell specification(s) that reference it.
  - `created_at` string, date-time, required — Timestamp when the material was created
  - `updated_at` string, date-time, required — Timestamp when the material was last updated
  - `created_by` string, nullable — User ID of the creator.
  - `property_count` integer — Number of property datasets attached to this material

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/ionworks/apis/fastapi.md) · [All operations](https://skmtc.dev/ionworks/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ionworks/fastapi/revisions/7337a3cbdaf2/schema)
