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
Body ()
Root Schema : UpdateSavedSearchPropertyModel
Type: object
Show Source
Nested Schema : accessSavedSearches
Type: array
Show Source
Nested Schema : hideSavedSearches
Type: array
Show Source
Nested Schema : SavedSearchPropertyModel
Type: object
Show Source
Back to Top

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
Back to Top

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