Get a Saved Search

get

/rest/v16/searchResources/{resourceVarName}/{searchId}

Use this endpoint to retrieve the specified saved search.

Request

Path Parameters
Back to Top

Response

200 Response

The response for getting a single saved search.
Body ()
Root Schema : savedSearchItem
Type: object
Show Source
Nested Schema : SavedSearchGroupByModel
Type: object
Show Source
Nested Schema : fields
Type: array
Show Source
Nested Schema : mongoQuery
Type: object
Additional Properties Allowed
Show Source
Nested Schema : orderBy
Type: array
Show Source

404 Response

Search with id not be found
Back to Top

Examples

The following example shows how to retrieve the specified saved search by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X GET -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Accept: application/json"
https://sitename.oracle.com/rest/v16/searchResources/commerceDocumentsOraclecpqoTransaction/38678835

Response Body Sample

{
  "_entity": "Quote",
  "name": "Vision Quotes In Process",
  "description": "",
  "updatable": true,
  "deletable": true,
  "queryUuid": 38678835,
  "savedSearchNumber": 38678835,
  "default": false,
  "shared": false,
  "active": true,
  "userId": 4119220,
  "userName": "superuser",
  "userKey": "ecde4a3c-1924-488f-821c-d4defcfafce3",
  "fields": [
    "transactionID_t",
    "version_t",
    "version_number_versionTransaction_t",
    "_customer_t_company_name",
    "transactionName_t",
    "status_t",
    "totalContractValue_t",
    "owner_t",
    "createdDate_t",
    "lastUpdatedDate_t",
    "totalAnnualValue_t"
  ],
  "orderBy": [
    "lastUpdatedDate_t:desc"
  ],
  "mongoQuery": {
    "$and": [{
        "_customer_t_company_name": {
          "$regex": "Vision"
        }
      }, {
        "status_t": {
          "$eq": "OPEN"
        }
      }
    ]
  },
  "searchType": "user_defined_search",
  "siteLevelDefault": false,
  "userLevelDefault": false,
  "hidden": false,
  "links": [{
      "rel": "self",
      "href": "http://sitename.oracle.comrest/v16/searchResources/commerceDocumentsOraclecpqoTransaction/38678835",
      "name": "self"
    }, {
      "rel": "canonical",
      "href": "http://sitename.oracle.comrest/v16/searchResources/commerceDocumentsOraclecpqoTransaction/38678835",
      "name": "canonical"
    }, {
      "rel": "parent",
      "href": "http://sitename.oracle.comrest/v16/searchResources/commerceDocumentsOraclecpqoTransaction",
      "name": "parent"
    }
  ]
}

Back to Top