Adds an uploaded file to a reusable email template you can edit. Create a file upload handle with fileUploadContext: "CommunicationTemplateAttachment", then POST the file to the returned URL as multipart/form-data, including all returned fields before the file field. Files may be up to 15 MiB each. Pass the upload handle here using the same API user or on-behalf-of user. Document Library selection is not supported.
Returns the updated template, with attachmentId identifying the attachment added by this request. Downloading a file through file.info requires communicationTemplates:read. The upload URL expires after 10 minutes. Upload and attach the file promptly.
After a timeout or server error, reread the template's attachments before retrying: the attachment may already be saved. Upload handles do not prevent duplicates. Use communicationTemplate.removeAttachment to remove an extra attachment. If the uploaded file is no longer available, upload it again.
Requires the communicationTemplatesWrite permission.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||

