How to create and view saved search using API ?

Question

How to create and view saved searches using API?

Answer

Creating 'Saved Searches' from API

  • Use the following POST API call for creating saved searches for yourself.
POST https://{{URL}}/reltio/api/{{tenantID}}/personal/savedSearches

 

Body

 

[
   {
       "name": "Sample Saved Search",
       "description":"Description for Sample Saved Search...",
       "query": "filter=(equals(type,'configuration/entityTypes/HCP'))",
       "isFavorite": true,
       "isPublic": false,
       "uiState": {"searchPanelLength": 32, "searchPanelWidth":256},
       "owner": "eldwine.sukumar"
   }

]

 

Creating 'Saved Searches' from  API for other users

  • Use the following POST API call for creating saved searches for other users.
POST {{URL}}/reltio/api/{{tenantID}}/personal/savedSearches?onBehalfOf={UserInformation}

 

Body

[

   {
       "name": "sso",
       "description":"saved search for others...",
       "query": "filter=(equals(type,'configuration/entityTypes/HCP'))",
        "isFavorite": true,
       "isPublic": false,
       "uiState": {"searchPanelLength": 32, "searchPanelWidth":256}
    }

]

 

GET all saved searches for a tenant

  • Use the following GET API call for getting all the saved searches for a given tenant.
GET https:// {{URL}}/reltio/api/{{tenantID}}/personal/allSavedSearches

 

References

https://docs.reltio.com/searchapi/createsavedsearch.html?hl=savedsearches

 

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.