---
title: "POST /applications/{applicationId}/templates"
method: POST
path: "/applications/{applicationId}/templates"
---

# POST /applications/{applicationId}/templates

`POST /applications/{applicationId}/templates`

Creates an AWS CloudFormation template.

## Path parameters

- `applicationId` string, required

## Request body

- object
  - `semanticVersion` string — <p>The semantic version of the application:</p><p> <a href="https://semver.org/">https://semver.org/</a> </p>

## Response `201`

Success

- CreateCloudFormationTemplateResponse
  - `ApplicationId` string — The application Amazon Resource Name (ARN).
  - `CreationTime` string — The date and time this resource was created.
  - `ExpirationTime` string — The date and time this template expires. Templates expire 1 hour after creation.
  - `SemanticVersion` string — <p>The semantic version of the application:</p><p> <a href="https://semver.org/">https://semver.org/</a> </p>
  - `Status` 'PREPARING' | 'ACTIVE' | 'EXPIRED' — <p>Status of the template creation workflow.</p><p>Possible values: PREPARING | ACTIVE | EXPIRED </p>
  - `TemplateId` string — <p>The UUID returned by CreateCloudFormationTemplate.</p><p>Pattern: [0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}</p>
  - `TemplateUrl` string — A link to the template that can be used to deploy the application using AWS CloudFormation.

## Other responses

- `480` — NotFoundException
- `481` — TooManyRequestsException
- `482` — BadRequestException
- `483` — InternalServerErrorException
- `484` — ForbiddenException

---

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