Unify and manage your data

Update Saved Search

PUT <tenant URI>/personal/savedSearches/<id>
Table 1. Parameters
Parameters Name Required Details
Headers Authorization Yes Information about authentication access token in format "Bearer <accessToken>" (see details in Authentication API ).
Content-Type Yes Should 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.

Query onBehalfOf No If 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"
   }