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
-
Type:
stringRequired:trueID of email type.
Body Parameter
Root Schema : updateEmailTemplates_request
{
"filename":"notifications/uploads/abandoned_order_v1.zip"
}
- filename
-
Type:
stringRequired:truePath to previously uploaded zip file containing email templates to apply for the specified email type.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updateEmailTemplates_response
- displayName
-
Type:
stringThe display name for the email type - errors
-
Type:
arrayerrorsAdditional Properties Allowed:Errors reported for the update. - success
-
Type:
booleantrue - if update was successful, false - if update was unsuccessful - warnings
-
Type:
arraywarningsAdditional Properties Allowed:Warnings reported for the update.
Nested Schema : errors
Nested Schema : warnings
Example 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://slc01ghw.us.oracle.com:9080/ccadminui/v1/email/types/abandoned_order_v1/templates"
}
],
"errors":[
]
}
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Request:
{"filename": "notifications/uploads/abandoned_order_v1.zip"}
Sample Response Payload returned by endpoint:
{
"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://slc01ghw.us.oracle.com:9080/ccadminui/v1/email/types/abandoned_order_v1/templates"
}],
"errors": []
}