Update a Saved Search
patch
/rest/v19/searchResources/{resourceVarName}/{searchId}
Use this endpoint to update the specified saved search.
Request
Path Parameters
-
resourceVarName(required): string
The unique variable name to identify the process.
-
searchId(required): number
The unique id of the search.
Root Schema : savedSearchItemUpdateInputModel
Type:
Show Source
object-
aggregations:
object SavedSearchGroupByModel
-
description:
string
Example:
This is a dummy description -
fields:
array fields
-
mongoQuery:
object mongoQuery
Additional Properties Allowed: additionalProperties
-
name:
string
Example:
savedSearchDummy -
orderBy:
array orderBy
Nested Schema : SavedSearchGroupByModel
Type:
Show Source
object-
attribute:
string
-
sort:
string
Default Value:
descAllowed Values:[ "asc", "desc" ]
Response
200 Response
Successfully modified the saved search
Root Schema : savedSearchItem
Type:
Show Source
object-
active:
boolean
-
aggregations:
object SavedSearchGroupByModel
-
default:
boolean
-
deletable:
string
-
description:
string
Example:
This is a dummy description -
fields:
array fields
- hidden: boolean
-
links:
array links
-
mongoQuery:
object mongoQuery
Additional Properties Allowed: additionalProperties
-
name:
string
Example:
savedSearchDummy -
orderBy:
array orderBy
-
queryUuid:
number
-
savedSearchNumber:
number
-
searchType:
string
Allowed Values:
[ "_user_defined_search", "_my_quotes_search", "_my_approval_search" ] - shared: boolean
-
siteLevelDefault:
boolean
-
updatable:
boolean
-
userId:
number
-
userKey:
string
-
userLevelDefault:
boolean
-
userName:
string
Nested Schema : SavedSearchGroupByModel
Type:
Show Source
object-
attribute:
string
-
sort:
string
Default Value:
descAllowed Values:[ "asc", "desc" ]
Nested Schema : links
Type:
Show Source
array-
Array of:
object reference links
Title:
reference linksReference links for the Parent, Self, Children and Related as applicable
Nested Schema : reference links
Type:
objectTitle:
reference linksReference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related objectURL to the related object -
name:
string
-
rel:
string
Title:
Link Relationship to the current objectDefault Value:selfLink Relationship to the current object
400 Response
If the saved search is a seeded saved search
404 Response
Saved search could not be found
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": {}
}