Search Filter API Reference Guide
This page describes the searchFilter endpoint.
Note
Additional fields may be included in some responses you receive; however, these attributes are for internal purposes and are therefore undocumented.
Search filter workflow
Save a new search filter
Endpoint
| Method | Path | Purpose | 
|---|---|---|
| POST | /searchFilter | Save a new search filter. | 
Query Parameters
None.
Payload Parameters
| Attribute | Description | Required | 
|---|---|---|
| filter | arrayIncludes facets to use in the search filter, such assearchText(the base search string for data sources/projects),tag,column,connectionString,schema, andtype(type of models to search for:datasourceorproject). | Yes | 
| name | stringName to be used for the search filter. | No | 
Response Parameters
| Attribute | Description | 
|---|---|
| filter | arrayThe facets used in the search filter, such assearchText(the base search string for data sources/projects),tag,column,connectionString,schema, andtype(type of models used in the filter:datasourceorproject). | 
| name | stringThe name of the search filter. | 
Request example
The following request saves a new search filter.
curl \
    --request POST \
    --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    --data @example_payload.json
    https://your-immuta-url.com/searchFilter
Payload example
{
  "name": "Medical Claims",
  "filter": {
    "searchText": "",
    "column": ["income_greater_than_50k"],
    "type": "datasource",
    "tag": ["Discovered.Entity.Medicare Number"]
  }
}
Response example
{
  "name": "Medical Claims",
  "filter": {
    "searchText": "",
    "column": ["income_greater_than_50k"],
    "type": "datasource",
    "tag": ["Discovered.Entity.Medicare Number"]
  }
}
Search saved search filters
Endpoint
| Method | Path | Purpose | 
|---|---|---|
| GET | /searchFilter | Retrieve saved search filters. | 
Query Parameters
| Attribute | Description | Required | 
|---|---|---|
| searchText | stringA string used to filter returned saved filters. The query is executed with a wildcard prefix and suffix. | No | 
Response Parameters
| Attribute | Description | 
|---|---|
| values | arrayDetails regarding the search filters, includingname,filter,searchText(the base search string for data sources/projects),tag,column,connectionString,schema, andtype(type of models used in the filter:datasourceorproject). | 
Request example
The following request retrieves all saved search filters.
curl \
    --request GET \
    --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    https://your-immuta-url.com/searchFilter
Response example
{
  "values": [{
    "name": "States",
    "filter": {
      "type": "datasource",
      "column": ["state"],
      "searchText": ""
    }
  }]
}
Delete a search filter
Endpoint
| Method | Path | Purpose | 
|---|---|---|
| DELETE | /searchFilter/{searchFilterName} | Delete a search filter by name. | 
Query Parameters
| Attribute | Description | Required | 
|---|---|---|
| searchFilterName | stringThe name of the specific search filter. | Yes | 
Response Parameters
| Attribute | Description | 
|---|---|
| values | arrayDetails regarding the search filters, includingname,filter,searchText(the base search string for data sources/projects),tag,column,connectionString,schema, andtype(type of models used in the filter:datasourceorproject). | 
Request example
The following request deletes the Medical Claims search filter.
curl \
    --request DELETE \
    --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    https://your-immuta-url.com/searchFilter/Medical%20Claims
Response example
{
  "name": "Medical Claims",
  "filter": {
    "tag": ["Discovered.Entity.Medicare Number"],
    "type": "datasource",
    "column": ["income_greater_than_50k"],
    "searchText": ""
  }
}