---
title: "Update an existing device template."
method: PATCH
path: "/templates/device/{templateId}"
tags: ["Templates"]
---

# Update an existing device template.

`PATCH /templates/device/{templateId}`

## Response `204`

OK

## Other responses

- `400` — Invalid input
- `404` — Not found
- `500` — ConcurrentModificationException

## Changes

- **2023-06-28** `f519f96625ee` — 1 info
  - added the non-success response with the status `500`
- **2022-03-16** `96fbfe4ecd1c` — 4 breaking, 4 info
  - the `relations/in/additionalProperties/items/` request property type/format changed from `string`/`` to ``/`` (media type: application/vnd.aws-cdf-v1.0+json)
  - the `relations/in/additionalProperties/items/` request property type/format changed from `string`/`` to ``/`` (media type: application/vnd.aws-cdf-v2.0+json)
  - the `relations/out/additionalProperties/items/` request property type/format changed from `string`/`` to ``/`` (media type: application/vnd.aws-cdf-v1.0+json)
  - the `relations/out/additionalProperties/items/` request property type/format changed from `string`/`` to ``/`` (media type: application/vnd.aws-cdf-v2.0+json)
  - …4 more
- **2021-08-28** `38800c573158` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/aws-samples/apis/aws-connected-device-framework-asset-library/changes/templates/device/:templateId/patch.md)

---

[API](https://skmtc.dev/aws-samples/apis/aws-connected-device-framework-asset-library.md) · [All operations](https://skmtc.dev/aws-samples/apis/aws-connected-device-framework-asset-library/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/aws-connected-device-framework-asset-library/revisions/78967b3d609f/schema)
