Update Saved Search
Learn more about how to update saved searches.
PUT <tenant URI>/personal/savedSearches/<id>MDM.Config.Preference: Update permission, you can update saved searches created by other users.| 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:
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"
}