Download email templates

get

/ccadmin/v1/email/types/{emailTypeId}/templates

Downloads the Freemarker templates for the subject and body of the email type for a specific site, along with associated locale-specific resource files, so that these can be viewed and customized.

Email templates are site-specific, so the correct site context must be specified via the X-CCSite request header or occsite query parameter. If the site context is omitted, the templates downloaded will be for the default site.

The email type to be downloaded is identified by the {emailTypeId} path parameter. The emailTypeId parameter must correspond to the ID of an existing email type.

The email templates and locale resources are downloaded as a zipped file in the endpoint response.

Note:If the request fails, a JSON object is returned instead of an application/zip file.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Returned when the operation succeeds.
Body ()
Root Schema : downloadEmailTemplates_200_response
Type: object
Show Source
  • items
    Response content type is application/x-zip-compressed, with response body containing the compressed zip file containing templates for the email type.
Nested Schema : items
Type: object
Response content type is application/x-zip-compressed, with response body containing the compressed zip file containing templates for the email type.

404 Response

When the given email does not exist
Body ()
Root Schema : downloadEmailTemplates_404_response
Type: object
Show Source

Default Response

The following internal error codes are thrown by this API when the request fails in Commerce:
Error CodeDescriptionPossible Fix
950049An unexpected error occurred building the zip file.See the returned error messages for further information.

The error response:
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top