---
title: "PATCH /models/{id}"
method: PATCH
path: "/models/{id}"
tags: ["Models"]
---

# PATCH /models/{id}

`PATCH /models/{id}`

Updates the metadata for a model.
Status codes:
* 204 No Content
* 400 Bad Request
  * InvalidArgument - The model id is invalid.
  * JsonPatchInvalid - The JSON Patch provided is invalid.
  * MissingArgument - The model id was not provided.
* 404 Not Found
  * ModelNotFound - The model was not found.
* 409 Conflict
  * ModelReferencesNotDecommissioned - The model refers to models that are not decommissioned.

## Path parameters

- `id` string, required

## Query parameters

- `api-version` string, required

## Response `204`

Success

## Other responses

- `default` — Default response.

## Changes

> 7 revisions in range; 1 could not be searched.

- **2026-07-13** (2020-05-31-preview) `d47143e47755` — 2 info
  - added the new optional `header` request parameter `traceparent` to all path's operations
  - added the new optional `header` request parameter `tracestate` to all path's operations

[Change history](https://skmtc.dev/azure/apis/digitaltwins-digitaltwins/changes/models/:id/patch.md)

---

[API](https://skmtc.dev/azure/apis/digitaltwins-digitaltwins.md) · [All operations](https://skmtc.dev/azure/apis/digitaltwins-digitaltwins/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/digitaltwins-digitaltwins/revisions/8d81dcdaf9a2/schema)
