Update User Default Saved Search

post

/rest/v16/searchResources/{resourceVarName}/entityPreferenceForUser

TUse this endpoint to update the default saved search for the user.

Request

Path Parameters
Body ()
Root Schema : UserPreferenceDefaultModel
Type: object
Show Source
Back to Top

Response

201 Response

The status change is successful.

404 Response

Search or Resource not found
Back to Top

Examples

The following examples show how to update the default saved search for the user 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/entityPreferenceForUser

Request Body Sample

{
  "_entity": "Quote",
  "queryUuid": 18006983,
  "default": true
}
Back to Top