Unify and manage your data

Update Saved Search

Learn more about how to update saved searches.

PUT <tenant URI>/personal/savedSearches/<id>
Note: As an admin, if you have MDM.Config.Preference: Update permission, you can update saved searches created by other users.
Table 1. Parameters
ParametersNameRequiredDetails
HeadersAuthorizationYesInformation about authentication access token in format "Bearer <accessToken>" (see details in Authentication API ).
Content-TypeYesShould be "Content-Type: application/json".
Body Yes

JSON Array with objects representing saved search request objects to create.

Each object must have "name" and "query" properties, all other are optional.

Meaningful fields are:

  • name
  • description
  • query
  • isFavorite
  • isPublic
  • uiState

all other are ignored.

QueryonBehalfOf NoIf current user is tenant admin, he can specify user name in this field for whom he is going to create saved search request.

Request

PUT <tenant URI>/personal/savedSearches/<id>
Headers:Authorization:Bearer 204938ca-2cf7-44b0-b11a-1b4c59984512,
Content-Type:application/json
Body:{
   "URI":"searchRequests/01LBxoX",
   "name":"super-search #1",
   "description":"Conscious description",
   "query":"filter=(equals(type,'configuration/entityTypes/HCP'))",
   "isFavorite":true,
   "uiState":{
      "searchPanelLength":100,
      "searchPanelWidth":100
   },
   "createDate":1398116799771,
   "isPublic":false,
   "owner":"mike"
   }

Response

{
   "URI":"searchRequests/01LBxoX",
   "name":"super-search #1",
   "description":"Conscious description",
   "query":"filter=(equals(type,'configuration/entityTypes/HCP'))",
   "isFavorite":true,
   "uiState":{
      "searchPanelLength":100,
      "searchPanelWidth":100
   },
   "createDate":1398116799771,
   "updateDate":1398123175636,
   "isPublic":false,
   "owner":"mike"
   }