---
title: "PUT /domains/{domainId}/templates/{templateId}"
method: PUT
path: "/domains/{domainId}/templates/{templateId}"
---

# PUT /domains/{domainId}/templates/{templateId}

`PUT /domains/{domainId}/templates/{templateId}`

Updates the attributes of an existing template. The template attributes that can be modified include `name`, `description`, `layoutConfiguration`, `requiredFields`, and `status`. At least one of these attributes must not be null. If a null value is provided for a given attribute, that attribute is ignored and its current value is preserved.

Other template APIs are:

*   [CreateTemplate](https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_CreateTemplate.html)
    
*   [DeleteTemplate](https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_DeleteTemplate.html)
    
*   [GetTemplate](https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_GetTemplate.html)
    
*   [ListTemplates](https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_ListTemplates.html)

## Path parameters

- `domainId` string, required
- `templateId` string, required

## Request body

- object
  - `name` string — The name of the template. It must be unique per domain.
  - `description` string — A brief description of the template.
  - `layoutConfiguration` object — Object to store configuration of layouts associated to the template.
    - `defaultLayout` string — Unique identifier of a layout.
  - `requiredFields` RequiredField[] — A list of fields that must contain a value for a case to be successfully created with this template.
    - `fieldId` string, required — Unique identifier of a field.
  - `status` 'Active' | 'Inactive' — The status of the template.
  - `rules` TemplateRule[] — A list of case rules (also known as <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html">case field conditions</a>) on a template.
    - `caseRuleId` string, required — Unique identifier of a case rule.
    - `fieldId` string — Unique identifier of a field.
  - `tagPropagationConfigurations` TagPropagationConfiguration[] — Defines tag propagation configuration for resources created within a domain. Tags specified here will be automatically applied to resources being created for the specified resource type.
    - `resourceType` 'Cases', required — Supported resource types for tag propagation. Determines which resources will receive automatically propagated tags.
    - `tagMap` object, required — The tags that will be applied to the created resource.

## Response `200`

Success

- UpdateTemplateResponse

## Other responses

- `480` — InternalServerException
- `481` — ResourceNotFoundException
- `482` — ValidationException
- `483` — ThrottlingException
- `484` — AccessDeniedException
- `485` — ConflictException
- `486` — ServiceQuotaExceededException

---

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