Update an automated email

Updates the specified automated email by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

PATCH/v3/automated-emails/{id}
JWT
automatedEmail:write

Parameters

NameTypeInDescription
id*stringpathUnique identifier for the automated email.

Request Body Schema

PropertyTypeDescriptionConstraints
namestringName of the email template.min: 3, max: 256, pattern: ^[a-zA-Z0-9_-]+$
fromNamestringName of the email sender.min: 1, max: 256
fromEmailstringFrom email address.min: 0, max: 256, format: email
ccstringCc address for the email template.min: 0, max: 256
bccstringBcc address for the email template.min: 0, max: 256
replyTostringReply-To address for the email template.min: 0, max: 256
enabledbooleanEnable or disable the email template.
subjectstringSubject of the email template.min: 1, max: 256
bodystringBody of the email template.min: 3, max: 20000
eventstringEvent to trigger sending of the email.min: 1, max: 256
custombooleanUse custom email template.
productIdsarrayOptional list of product IDs that this email template should apply to for license events.items: string

Request Example

{
  "name": "a",
  "fromName": "string",
  "fromEmail": "user@example.com",
  "cc": "string",
  "bcc": "string",
  "replyTo": "string",
  "enabled": true,
  "subject": "string",
  "body": "string",
  "event": "string",
  "custom": true,
  "productIds": [
    "string"
  ]
}
Triggers webhook: automatedEmail.updated
POST <your-webhook-url>
{
  "event": "automatedEmail.updated",
  "data": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "fromName": "string",
    "fromEmail": "string",
    "cc": "string",
    "bcc": "string",
    "subject": "string",
    "body": "string",
    "replyTo": "string",
    "event": "string",
    "enabled": true,
    "custom": true,
    "sent": 0,
    "productIds": [
      "string"
    ]
  },
  "triggeredAt": "string"
}

Responses

200 OK
{
  "id": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "name": "string",
  "fromName": "string",
  "fromEmail": "string",
  "cc": "string",
  "bcc": "string",
  "subject": "string",
  "body": "string",
  "replyTo": "string",
  "event": "string",
  "enabled": true,
  "custom": true,
  "sent": 0,
  "productIds": [
    "string"
  ]
}