Update RTE Templates

post

/rest/v19/commerceAttrRichTextTemplates/actions/synchronize

Use this endpoint to rename or delete multiple RTE templates. The desired action and the applicable information are specified in the request body. For rename requests, the new name and template Id are required. For delete requests, the template Id is required.

Request

Supported Media Types
Body ()
Root Schema : commerceAttrRichTextTemplates-synchronizeCollectionRequest
Type: object
Show Source
Nested Schema : commerceAttrRichTextTemplates-collection
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Commerce Attribute RT Templates
Type: object
Title: Commerce Attribute RT Templates
Show Source
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : commerceAttrRichTextTemplates-synchronizeCollectionResponse
Type: object
Back to Top

Examples

The following example shows how to srename or delete multiple RTE templates by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X POST -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v19/commerceAttrRichTextTemplates/actions/synchronizeTemplates

Request Body Sample


{
  "_client_driven_action": true,
  "documents": {
    "items": [{
        "name": "sync5_1",
        "id": 3022596693,
        "_sync_action": "update"
      }, {
        "id": 3022596694,
        "_sync_action": "delete"
      }, {
        "processVarName": "oraclecpqo",
        "documentVarName": "transaction",
        "attributeVarName": "coverLetter_t",
        "name": "sync11",
        "content": "sync111",
        "_sync_action": "create"
      }
    ]
  }
}

Response Body Sample

{
  "documents": {
    "hasMore": false,
    "links": [{
        "rel": "self",
        "href": "https://sitename.oracle.com/rest/v19/commerceAttrRichTextTemplates"
      }
    ],
    "items": [{
        "_sync_status": "updated",
        "attributeVarName": "coverLetter_t",
        "processVarName": "oraclecpqo",
        "documentVarName": "transaction",
        "name": "sync5_1",
        "dateModified": "2021-06-30T17:22:00.954Z",
        "id": 3022596693,
        "dateAdded": "2021-06-29T01:30:32.000Z",
        "content": "synce1",
        "links": [{
            "rel": "self",
            "href": "https://sitename.oracle.com/rest/v19/commerceAttrRichTextTemplates/3022596693"
          }
        ]
      }, {
        "_sync_status": "created",
        "attributeVarName": "functionDefaultRTE",
        "processVarName": "transaction_bmClone_2",
        "documentVarName": "quote",
        "name": "sync11",
        "dateModified": "2021-06-30T17:22:11.262Z",
        "id": 3022597224,
        "dateAdded": "2021-06-30T17:22:11.262Z",
        "content": "sync111",
        "links": [{
            "rel": "self",
            "href": "https://sitename.oracle.com/rest/v19/commerceAttrRichTextTemplates/3022597224"
          }
        ]
      }
    ]
  }
}
Back to Top