Get an RTE Template
get
/rest/v19/commerceAttrRichTextTemplates/{id}
Use this endpoint to retrieve the content of a user's saved RTE Template for the specified template Id.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): integer
Primary Key of the resource
Response
Supported Media Types
- application/json
Default Response
Root Schema : Commerce Attribute RT Templates
Type:
object
Title:
Show Source
Commerce Attribute RT Templates
-
attributeVarName:
string
Title:
Attribute Variable Name
Variable Name of owner Attribute -
bsId:
integer
Title:
BS Id
the transaction id -
content:
string
Title:
Contente
Actual Reach Text snippet -
dateAdded:
string
Title:
Date Added
System field indicating the date on which the Resource was created. -
dateModified:
string
Title:
Date Modified
System field indicating the date on which the Resource was last modified. -
docNum:
integer
Title:
Document Number
the document Number -
documentVarName:
string
Title:
Document Variable Name
Variable Name of owner Document -
id:
integer
Title:
Id
Primary Key of the resource -
isLegacy:
boolean
Title:
Is Legacy
Whether the template is legacy -
name:
string
Title:
Name
Name of the Template -
processVarName:
string
Title:
Process Variable Name
Variable Name of owner Process
Examples
The following example returns the specified RTE attribute template by submitting a GET request to the REST resource using cURL.
curl -X GET -H "Authorization: Bearer <token>" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/commerceAttrRichTextTemplates/3022555858?fields=content
Response Body Sample
The following example shows the contents of the response body in JSON format:
{ "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://site.oracle.com/commerceRichTextTemplates/3022555858" } ] }