:doc:`SESV2 <../../sesv2>` / Client / update_email_template

*********************
update_email_template
*********************



.. py:method:: SESV2.Client.update_email_template(**kwargs)

  

  Updates an email template. Email templates enable you to send personalized email to one or more destinations in a single API operation. For more information, see the `Amazon SES Developer Guide <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-personalized-email-api.html>`__.

   

  You can execute this operation no more than once per second.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/UpdateEmailTemplate>`_  


  **Request Syntax**
  ::

    response = client.update_email_template(
        TemplateName='string',
        TemplateContent={
            'Subject': 'string',
            'Text': 'string',
            'Html': 'string'
        }
    )
    
  :type TemplateName: string
  :param TemplateName: **[REQUIRED]** 

    The name of the template.

    

  
  :type TemplateContent: dict
  :param TemplateContent: **[REQUIRED]** 

    The content of the email template, composed of a subject line, an HTML part, and a text-only part.

    

  
    - **Subject** *(string) --* 

      The subject line of the email.

      

    
    - **Text** *(string) --* 

      The email body that will be visible to recipients whose email clients do not display HTML.

      

    
    - **Html** *(string) --* 

      The HTML body of the email.

      

    
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

      
  
  **Exceptions**
  
  *   :py:class:`SESV2.Client.exceptions.NotFoundException`

  
  *   :py:class:`SESV2.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`SESV2.Client.exceptions.BadRequestException`

  