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
                - application/json
Root Schema : commerceAttrRichTextTemplates-synchronizeCollectionRequest
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            _client_driven_action: 
            boolean
            Title:Client Driven ActionDirects executor to look for individual _sync_action hints in array entries of documents.items parameter; _sync_action hint has a form of additional property and can have following values: create, update, or delete
- 
            documents: 
            object  commerceAttrRichTextTemplates-collection
            
            
Nested Schema : commerceAttrRichTextTemplates-collection
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            count: 
            integer
            The number of resource instances returned in the current range.
- 
            hasMore: 
            boolean
            Returns true if more resources are available on the server than the subset returned in current page.
- 
            items: 
            array  items
            
            
- 
            limit: 
            integer
            The actual paging size used by the server.
- 
            offset: 
            integer
            The offset used in the current page.
- 
            totalResults: 
            integer
            Capture the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
Nested Schema : items
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        array- 
            Array of: 
                object  Commerce Attribute RT Templates
            
            Title:Commerce Attribute RT Templates
Nested Schema : Commerce Attribute RT Templates
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        Commerce Attribute RT Templates- 
            attributeVarName: 
            string
            Title:Attribute Variable NameVariable Name of owner Attribute
- 
            bsId: 
            integer
            Title:BS Idthe transaction id
- 
            content: 
            string
            Title:ContenteActual Reach Text snippet
- 
            dateAdded: 
            string
            Title:Date AddedSystem field indicating the date on which the Resource was created.
- 
            dateModified: 
            string
            Title:Date ModifiedSystem field indicating the date on which the Resource was last modified.
- 
            docNum: 
            integer
            Title:Document Numberthe document Number
- 
            documentVarName: 
            string
            Title:Document Variable NameVariable Name of owner Document
- 
            id: 
            integer
            Title:IdPrimary Key of the resource
- 
            isLegacy: 
            boolean
            Title:Is LegacyWhether the template is legacy
- 
            name: 
            string
            Title:NameName of the Template
- 
            processVarName: 
            string
            Title:Process Variable NameVariable Name of owner Process
Response
Supported Media Types
                - application/json
Default Response
Root Schema : commerceAttrRichTextTemplates-synchronizeCollectionResponse
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
objectExamples
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"
          }
        ]
      }
    ]
  }
}