NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Email Template → Update record

AI-generated

Summary

Update an existing email template record via PATCH /emailTemplate/{id}

Inputs

  • id (required) — Internal identifier of the email template to update.
  • isInactive — Check to inactivate the template, preventing it from being used.
  • subject — Default subject line for emails sent with this template.
  • content — Template text or HTML; can be entered directly or via file.
  • templateType — Type of email template (e.g., MAIL, PDF).
  • replace — Names of sublists to replace, comma‑separated.
  • replaceSelectedFields — When true, all fields to be deleted must be listed in the replace query parameter.
  • usesMedia — Media item settings for the template.
  • X-NetSuite-Idempotency-Key — Unique idempotency key for asynchronous requests.
  • X-NetSuite-PropertyNameValidation — Controls strictness of property name validation.
  • X-NetSuite-PropertyValueValidation — Controls strictness of property value validation.
  • customFields — Custom fields to include on the record.
  • isDebugMode — Include full request/response details in the output when enabled.

Output shape

a single updated email template record

The response returns the updated template object with all fields; optional fields may be omitted if unchanged.

Examples

Example 1: Update an email template's subject and content

Set Id to 123, Subject to 'Upgrade Offer', Content to '

Special Upgrade

', set isInactive false

Links

Discussion