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
Query Parameters
  • Restrict which fields shall be returned. The value is a comma delimited string and each token is a field name.
  • The requested page size, which limits the number of elements the collection should max return.
  • The offset of the page. By default, offset is 0, which means first page will be returned.
  • Specifies a comma-separated list of pairs to order the response by.
  • Allows to specify one or more filtering criteria. By default, no filtering is applied.
  • Specifies that the total count of records should be included in the response when doing pagination.
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root 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

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"
        }
      ]
    }
  ]
}
Back to Top