# Upsert Email Upsert Email Endpoint: PATCH /rest/2.0/EMAIL_TEMPLATE Version: 1.0 Security: JWT ## Header parameters: - `sessionId` (string, required) ## Request fields (application/json; charset=utf-8): - `brmObjects` (object) - `brmObjects.Created` (string) System controlled field: Date and time the record was created - `brmObjects.Status` (string, required) Status: Setting the status to Deactivated will stop email delivery of events using this template (Workflow Actions, various notifications etc - `brmObjects.FromEmail` (string, required) From Email - `brmObjects.BaseEntityId` (integer) Base Entity - `brmObjects.Updated_user_id` (string) Last Updated By User - `brmObjects.Body` (string) Body - `brmObjects.SystemFlag` (integer) System Email Template - `brmObjects.RecipientTo` (string) Recipient To - `brmObjects.Subject` (string) Subject - `brmObjects.Created_user_id` (string) Created By User - `brmObjects.BodyHtml` (string) Body Html - `brmObjects.RecipientBcc` (string) Recipient Bcc - `brmObjects.Updated` (string) System controlled field: Date and time the record was last updated - `brmObjects.Id` (string, required) Id: EMAIL_TEMPLATE_ID - `brmObjects.EmailTemplateName` (string, required) Template Name - `brmObjects.RecipientCc` (string) Recipient Cc - `brmObjects.EmailTemplateType` (string) EmailTemplateType - `brmObjects.EmailTemplateExists` (string) EmailTemplateExists - `brmObjects.RootAccountId` (string) RootAccountId - `externalIDFieldName` (string) Enum: "EmailTemplateName" ## Response 200 fields (application/json): - `upsertResponse` (array) - `upsertResponse.Id` (integer) - `upsertResponse.success` (boolean) - `upsertResponse.ErrorText` (string) - `upsertResponse.ErrorElementField` (string) - `upsertResponse.created` (boolean)