---
title: "PATCH /provisioning-templates/{templateName}"
method: PATCH
path: "/provisioning-templates/{templateName}"
---

# PATCH /provisioning-templates/{templateName}

`PATCH /provisioning-templates/{templateName}`

Updates a provisioning template.

Requires permission to access the [UpdateProvisioningTemplate](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions) action.

## Path parameters

- `templateName` string, required

## Request body

- object
  - `description` string — The description of the provisioning template.
  - `enabled` boolean — True to enable the provisioning template, otherwise false.
  - `defaultVersionId` integer — The ID of the default provisioning template version.
  - `provisioningRoleArn` string — The ARN of the role associated with the provisioning template. This IoT role grants permission to provision a device.
  - `preProvisioningHook` object — Structure that contains <code>payloadVersion</code> and <code>targetArn</code>.
    - `payloadVersion` string — <p>The payload that was sent to the target function.</p> <p> <i>Note:</i> Only Lambda functions are currently supported.</p>
    - `targetArn` string — <p>The ARN of the target function.</p> <p> <i>Note:</i> Only Lambda functions are currently supported.</p>
  - `removePreProvisioningHook` boolean — Removes pre-provisioning hook template.

## Response `200`

Success

- UpdateProvisioningTemplateResponse

## Other responses

- `480` — InternalFailureException
- `481` — InvalidRequestException
- `482` — ResourceNotFoundException
- `483` — UnauthorizedException
- `484` — ConflictingResourceUpdateException

---

[API](https://skmtc.net/aws/apis/iot.md) · [All operations](https://skmtc.net/aws/apis/iot/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/iot/revisions/deef5c4b09f0/schema)
