Update Saved Search Access Permissions
post
/rest/v16/searchResources/{resourceVarName}/accessSavedSearches
Use this endpoint to update the hidden or shared status of a saved search.
Request
Path Parameters
-
resourceVarName(required): string
The unique variable name to identify the process.
Nested Schema : SavedSearchPropertyModel
Type:
Show Source
object
-
queryId:
number
Example:
34456783
-
status:
boolean
Response
201 Response
The status change is successful.
404 Response
Search or Resource not found
405 Response
User has no access to modify the shared property of saved searches
Examples
The following examples show how to update access for the specified saved search by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X POST - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json" https://sitename.oracle.com/rest/v16/searchResources/commerceDocumentsOraclecpqoTransaction/accessSavedSearches
Hide a Saved Search Request Body Sample
{ "_entity": "Quote", "accessSavedSearches": [], "hideSavedSearches": [{ "queryId": 3023270385, "status": true } ] }
Unhide a Saved Search Request Body Sample
{ "_entity": "Quote", "accessSavedSearches": [], "hideSavedSearches": [{ "queryId": 3023270385, "status": false } ] }
Share a Saved Search Request Body Sample
{ "_entity": "Quote", "accessSavedSearches": [{ "queryId": 3023270385, "status": true } ], "hideSavedSearches": [] }
Unshare a Saved Search Request Body Sample
{ "_entity": "Quote", "accessSavedSearches": [{ "queryId": 3023270385, "status": false } ], "hideSavedSearches": [] }