Get All RTE Templates
get
/rest/v19/commerceAttrRichTextTemplates
This REST API endpoint with the Commerce process variable name, document variable name, and RTE variable name query parameters can be used to retrieve a user-specific list of templates for the specified RTE attribute.
Request
Supported Media Types
- application/json
Query Parameters
-
fields: string
Restrict which fields shall be returned. The value is a comma delimited string and each token is a field name.
-
limit: integer
The requested page size, which limits the number of elements the collection should max return.
-
offset: integer
The offset of the page. By default, offset is 0, which means first page will be returned.
-
orderby: string
Specifies a comma-separated list of pairs to order the response by.
-
q: string
Allows to specify one or more filtering criteria. By default, no filtering is applied.
-
totalResults: boolean
Specifies that the total count of records should be included in the response when doing pagination.
Response
Supported Media Types
- application/json
Default Response
Root 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:
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 list of accounts by submitting a GET request to the REST resource using cURL.
curl -X POST -H "Authorization: Bearer <token>" -H "Accept: application/json" https://site.oracle.com/rest/v19commerceAttrRichTextTemplates?q={$and:[{'processVarName':'oraclecpqo'},{'documentVarName':'transaction'},{'attributeVarName':'coverLetter_t'}]}&fields=name,id&orderby=name
Response Body Sample
The following example shows the contents of the response body in JSON format:
{ "hasMore": false, "links": [{ "rel": "self", "href": "https://site.oracle.com/commerceAttrRichTextTemplates" } ], "items": [{ "name": "Templ", "id": 3022555768, "links": [{ "rel": "self", "href": "https://site.oracle.com/commerceAttrRichTextTemplates/3022555768" } ] }, { "name": "Temp2", "id": 3022555858, "links": [{ "rel": "self", "href": "https://site.oracle.com/commerceAttrRichTextTemplates/3022555858" } ] } ] }