Basic

Update an existing email template in your HubSpot account. This endpoint allows you to modify the template's properties such as name, subject, body, and folderId. Ensure that the templateId provided corresponds to an existing template. Please note: the scopes for these endpoints require user-level access and will not work for existing apps with portal-level access.

patch/automation/email-templates/2026-09/{templateId}

Request

  • Base URL: https://api.hubapi.com
  • URL: https://api.hubapi.com/automation/email-templates/2026-09/{templateId}
  • Auth: none required

Path parameters

templateIdinteger required

The unique identifier of the email template to update.

Request body

bodyobject required

An object representing the body content of the email template.

folderIdobject required

An object representing the identifier of the folder where the email template is stored.

nameobject required

An object representing the name of the email template.

subjectobject required

An object representing the subject line of the email template.

Response

successful operation

bodystring

The content of the email template, represented as a string.

createdAtinteger

The timestamp indicating when the email template was created, represented as an integer in int64 format.

folderIdstring

The identifier of the folder where the email template is stored, represented as a string.

idstring required

The unique identifier for the email template, represented as a string.

namestring

The name of the email template, represented as a string.

ownerIdstring

The identifier of the owner of the email template, represented as a string.

subjectstring

The subject line of the email template, represented as a string.

updatedAtinteger

The timestamp indicating when the email template was last updated, represented as an integer in int64 format.

Changes