---
title: "POST /template"
method: POST
path: "/template"
---

# POST /template

`POST /template`

Creates a migration workflow template.

## Request body

- object
  - `templateName` string, required — The name of the migration workflow template.
  - `templateDescription` string — A description of the migration workflow template.
  - `templateSource` object, required — The migration workflow template used as the source for the new template.
    - `workflowId` string — The ID of the workflow from the source migration workflow template.
  - `clientToken` string — A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://smithy.io/2.0/spec/behavior-traits.html#idempotencytoken-trait">Idempotency</a> in the Smithy documentation.
  - `tags` object — The tags to add to the migration workflow template.

## Response `200`

Success

- CreateTemplateResponse
  - `templateId` string — The ID of the migration workflow template.
  - `templateArn` string — The Amazon Resource Name (ARN) of the migration workflow template. The format for an Migration Hub Orchestrator template ARN is <code>arn:aws:migrationhub-orchestrator:region:account:template/template-abcd1234</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html">Amazon Resource Names (ARNs)</a> in the <i>AWS General Reference</i>.
  - `tags` object — The tags added to the migration workflow template.

## Other responses

- `480` — ThrottlingException
- `481` — ConflictException
- `482` — AccessDeniedException
- `483` — InternalServerException
- `484` — ValidationException

---

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