---
title: "Creates a new patch patch template"
method: POST
path: "/patchTemplates"
tags: ["Patch Templates"]
---

# Creates a new patch patch template

`POST /patchTemplates`

Defines a new template by specifying the type of the patch "agentless" or "agentbased" and a source of the ansible playbook.

## Response `201`

Created

## Other responses

- `400` — Invalid input
- `409` — Conflict

## Changes

- **2023-06-28** `9c2c688f04ec` — 1 breaking, 1 info
  - removed the media type `multipart/form-data` from the request body
  - added the media type `application/vnd.aws-cdf-v1.0+json` to the request body
- **2022-04-25** `9b9ffa028c42` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/aws-samples/apis/aws-connected-device-framework-device-patcher/changes/patchTemplates/post.md)

---

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