Create an RTE Template
post
                    /rest/v19/commerceAttrRichTextTemplates
Use this endpoint to create an RTE Template for the specified RTE attribute. The Commerce process variable name, document variable name, RTE attribute variable name, and content are specified in the request body.
                
                Request
Supported Media Types
                - application/json
Root Schema : Commerce Attribute RT Templates
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        Commerce Attribute RT Templates- 
            attributeVarName: 
            string
            Title:Attribute Variable NameVariable Name of owner Attribute
- 
            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.
- 
            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 : 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
Examples
The following example shows how to operation creates a new user 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" https://sitename.oracle.com/rest/v19/commerceAttrRichTextTemplates
Request Body Sample
{
  "processVarName": "oraclecpqo",
  "documentVarName": "transaction",
  "attributeVarName": "coverLetter_t",
  "name": "MyNewTemplate",
  "content": "this is a <span style=\"font-size: 18pt;\">RTE</span> entry\n<div><strong><em>Ill </em></strong>try <span style=\"color: #00ff00;\">to</span> create a <span style=\"color: #ff0000;\">template</span></div>\n<div>and now I'm modifiing it \n<div> </div>\n</div>"
}
                  Response Body Sample
{
  "name": "MyNewTemplate",
  "id": 3022555768,
  "processVarName": "oraclecpqo",
  "documentVarName": "transaction",
  "attributeVarName": "coverLetter_t",
  "content": "this is a <span style=\"font-size: 18pt;\">RTE</span> entry\n<div><strong><em>Ill </em></strong>try <span style=\"color: #00ff00;\">to</span> create a <span style=\"color: #ff0000;\">template</span></div>\n<div>and now I'm modifiing it \n<div> </div>\n</div>" "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v19/commerceAttrRichTextTemplates/3022555768"
    }
  ]
}