Hello Eren,
What you're looking for, may be done in two steps -
get the filter query for the saved search
- you can use this API call to get the saved searches for your tenant along with the query in the "filter" section in the response
Request:
GET {{tenantURL}}/personal/allSavedSearches
Response:
"uri": "savedSearches/31syN2d6",
"name": "Saved Search Orgs",
"query": "filter=equals(type%2C'configuration%2FentityTypes%2FOrganization')&options=searchByOv%2CovOnly",
"isFavorite": true,
use the same filter in a entity search API
Request:
GET {{tenantURL}}/entities/_search?max=100&filter=equals(type%2C'configuration%2FentityTypes%2FOrganization')
------------------------------
Ranadip Das
------------------------------
Original Message:
Sent: 12-20-2021 13:52
From: Eren Zedeli
Subject: Postman API to Use Saved Search Query
Hello Chandra,
Thank you for the quick response.
Maybe I should have been more clear with my question. I was wondering whether there was an API that helps you use the query you created on Reltio UI (Advanced Search).
Let's say, I saved a query on Reltio UI (see the screenshot below) and I want to use the same query to pull the data via API.
------------------------------
Eren Zedeli
Data Scientist
Imidia LLC
Original Message:
Sent: 12-15-2021 13:30
From: Chandra Mohan Reddy Dalli
Subject: Postman API to Use Saved Search Query
Hi Eren
Above can be used using below steps
1. Run POST Authorization API via below API from Postman. Pass all username, passpword information
{{urlAuth}}/token?username={{username}}&password={{password}}&grant_type=password ( Where urlAuth = 'https://auth.reltio.com/oauth' )
2. Run GET Entity API as stated below. Pass on tenantURL and attribute name and filter. Below is an example.
{{tenantURL}}/entities?filter=containsWordStartingWith(attributes, '1SZriV7M')
------------------------------
Chandra Mohan Reddy Dalli
Infosys
Morris Plns
Original Message:
Sent: 12-15-2021 11:50
From: Eren Zedeli
Subject: Postman API to Use Saved Search Query
Hello,
Is there a Postman API which we can use the saved query that is created in Reltio UI, then pull the filtered data via API?
------------------------------
Eren Zedeli
Data Scientist
Imidia LLC
------------------------------