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: string
Required: true
ID of email type.
Body Parameter
Root Schema : updateEmailTemplates_request

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updateEmailTemplates_response
Nested Schema : errors
Type: array
Errors reported for the update.
Nested Schema : warnings
Type: array
Warnings reported for the update.
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
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

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": []
}