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

# POST /PutTemplateAction

`POST /PutTemplateAction`

Put template post migration custom action.

## Request body

- object
  - `actionID` string, required — Template post migration custom action ID.
  - `actionName` string, required — Template post migration custom action name.
  - `active` boolean — Template post migration custom action active status.
  - `category` 'DISASTER_RECOVERY' | 'OPERATING_SYSTEM' | 'LICENSE_AND_SUBSCRIPTION' | 'VALIDATION' | 'OBSERVABILITY' | 'SECURITY' | 'NETWORKING' | 'CONFIGURATION' | 'BACKUP' | 'OTHER' — Template post migration custom action category.
  - `description` string — Template post migration custom action description.
  - `documentIdentifier` string, required — Template post migration custom action document identifier.
  - `documentVersion` string — Template post migration custom action document version.
  - `externalParameters` object — Template post migration custom action external parameters.
  - `launchConfigurationTemplateID` string, required — Launch configuration template ID.
  - `mustSucceedForCutover` boolean — Template post migration custom action must succeed for cutover.
  - `operatingSystem` string — Operating system eligible for this template post migration custom action.
  - `order` integer, required — Template post migration custom action order.
  - `parameters` object — Template post migration custom action parameters.
  - `timeoutSeconds` integer — Template post migration custom action timeout in seconds.

## Response `200`

Success

- TemplateActionDocument
  - `actionID` string — Template post migration custom action ID.
  - `actionName` string — Template post migration custom action name.
  - `active` boolean — Template post migration custom action active status.
  - `category` 'DISASTER_RECOVERY' | 'OPERATING_SYSTEM' | 'LICENSE_AND_SUBSCRIPTION' | 'VALIDATION' | 'OBSERVABILITY' | 'SECURITY' | 'NETWORKING' | 'CONFIGURATION' | 'BACKUP' | 'OTHER' — Template post migration custom action category.
  - `description` string — Template post migration custom action description.
  - `documentIdentifier` string — Template post migration custom action document identifier.
  - `documentVersion` string — Template post migration custom action document version.
  - `externalParameters` object — Template post migration custom action external parameters.
  - `mustSucceedForCutover` boolean — Template post migration custom action must succeed for cutover.
  - `operatingSystem` string — Operating system eligible for this template post migration custom action.
  - `order` integer — Template post migration custom action order.
  - `parameters` object — Template post migration custom action parameters.
  - `timeoutSeconds` integer — Template post migration custom action timeout in seconds.

## Other responses

- `480` — UninitializedAccountException
- `481` — ResourceNotFoundException
- `482` — ValidationException
- `483` — ConflictException

---

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