# REST Resource: projects.locations.instances.emailTemplates

- [Resource: EmailTemplate](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.emailTemplates#EmailTemplate)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.emailTemplates#EmailTemplate.SCHEMA_REPRESENTATION)
- [EmailTemplateType](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.emailTemplates#EmailTemplateType)
- [Methods](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.emailTemplates#METHODS_SUMMARY)

## Resource: EmailTemplate

This service is available for customers who migrated SOAR to a customer managed project and have the Chronicle API enabled. EmailTemplate resource.

| JSON representation |
|---|
| ``` { "name": string, "templateType": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.emailTemplates#EmailTemplateType`), "content": string, "displayName": string, "author": string, "environments": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of the EmailTemplate. Format: projects/{project}/locations/{location}/instances/{instance}/emailTemplates/{emailTemplate} |
| `templateType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.emailTemplates#EmailTemplateType`)`` Required. Type of the content |
| `content` | `string` Required. Content of the EmailTemplate. |
| `displayName` | `string` Required. Display name of the EmailTemplate. |
| `author` | `string` Output only. Name of creator user. |
| `environments` | `string` Required. The environments to which the custom list is associated. |

## EmailTemplateType

The resource inner type of the EmailTemplate.

| Enums ||
|---|---|
| `EMAIL_TEMPLATE_TYPE_UNSPECIFIED` | unspecified value |
| `TEMPLATE` | simple text content |
| `HTML_FORMAT` | text content in HTML format |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.emailTemplates/batchDelete` | Deletes multiple email templates in a single operation. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.emailTemplates/create` | Creates a new EmailTemplate. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.emailTemplates/delete` | Deletes a specific EmailTemplate. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.emailTemplates/export` | Exports selected email templates as a CSV file. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.emailTemplates/get` | Gets a single EmailTemplate by its resource name. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.emailTemplates/import` | Imports multiple email templates from a CSV file. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.emailTemplates/list` | Lists all EmailTemplates available in the instance. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.emailTemplates/patch` | Updates an existing EmailTemplate. |