updateEmailTemplates
put
/ccadmin/v1/email/types/{emailTypeId}/templates
Update Email Templates. Updates templates for an email type from previously uploaded zip file.
Request
Supported Media Types
- application/json
Path Parameters
-
emailTypeId: string
ID of email type.
Root Schema : updateEmailTemplates_request
Type:
Show Source
object
-
filename:
string
Path to previously uploaded zip file containing email templates to apply for the specified email type.
Example:
{
"filename":"notifications/uploads/abandoned_order_v1.zip"
}
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : updateEmailTemplates_response
Type:
Show Source
object
-
displayName(optional):
string
The display name for the email type
-
errors(optional):
array errors
Errors reported for the update.
-
success(optional):
boolean
true - if update was successful, false - if update was unsuccessful
-
warnings(optional):
array warnings
Warnings reported for the update.
Example Response (application/json)
{
"success":true,
"displayName":"Abandoned Cart",
"warnings":[
"Locale 'sh' referenced in 'locales/sh/Strings.xlf' is not a supported locale. This folder and its contents will not be uploaded."
],
"links":[
{
"rel":"self",
"href":"http://admin.example.com/ccadminui/v1/email/types/abandoned_order_v1/templates"
}
],
"errors":[
]
}
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code