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

# POST /provisioning-templates/{templateName}/versions

`POST /provisioning-templates/{templateName}/versions`

Creates a new version of a provisioning template.

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

## Path parameters

- `templateName` string, required

## Query parameters

- `setAsDefault` boolean

## Request body

- object
  - `templateBody` string, required — The JSON formatted contents of the provisioning template.

## Response `200`

Success

- CreateProvisioningTemplateVersionResponse
  - `templateArn` string — The ARN that identifies the provisioning template.
  - `templateName` string — The name of the provisioning template.
  - `versionId` integer — The version of the provisioning template.
  - `isDefaultVersion` boolean — True if the provisioning template version is the default version, otherwise false.

## Other responses

- `480` — VersionsLimitExceededException
- `481` — InternalFailureException
- `482` — InvalidRequestException
- `483` — ThrottlingException
- `484` — ResourceNotFoundException
- `485` — UnauthorizedException
- `486` — 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)
