Update a Saved Search

patch

/rest/v19/searchResources/{resourceVarName}/{searchId}

Use this endpoint to update the specified saved search.

Request

Path Parameters
Body ()
Root Schema : savedSearchItemUpdateInputModel
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
Back to Top

Response

200 Response

Successfully modified the 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

400 Response

If the saved search is a seeded saved search

404 Response

Saved search could not be found
Back to Top

Examples

The following examples show how to update the specified saved search by submitting a PATCH request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X PATCH -H "Authorization: Bearer <token>" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v19/searchResources/commerceDocumentsOraclecpqoTransaction/3023270385

Request Body Sample

{
  "name": "Copy of Operators: Date: =",
  "_entity": "Quote",
  "fields": [
    "_id"
  ],
  "mongoQuery": {
    "processManagerDate": {
      "$eq": "2020-01-01T13:45:00-08:00"
    }
  },
  "keywords": [],
  "orderBy": [],
  "aggregations": {}
}
Back to Top