User Guide Release Heelflip
Admin GuidesAiimi
  • Introducing Aiimi Insight Engine
    • Heelflip Release
      • Insightful Views - Timeline
      • Enriched Reporting With OData
  • Search
    • Introduction
    • Searching for Information
      • Optimising a search
        • Filtering and searching
      • Folder Browsing
      • Saving Searches
      • Multilingual Search
    • Search Results
      • View Documents In One Place
      • Lenses and Result Views
        • Timeline
        • Relationship
          • Finding Result Connections
          • Minimum Results
          • Relationship Type
          • Accessible Relationship Map
      • Filtering Results
        • Using Minimum Matching Terms
        • Using Synonyms
      • Sorting Results
      • Subject Matter Experts
      • Why These Results
        • Find Searched Terms
        • Mark As Useful
        • Mark As Sensitive
        • Why My Search Matched
      • Related Result Connections
        • Understand Connections
        • Adding card details
        • Explore More Connections
  • Collections
    • What is a Collection?
      • Collection Types
    • Manage collections
      • Create a Collection
      • Status Management
      • Edit, Delete or Merge
    • Using a Collection
      • Add Items to a Collection
      • Sharing a Collection
      • Adding Comments to a Collection
  • Subject Access Request
    • Introduction
    • Creating or Receiving New SARs
      • Requests From The Portal
        • Creating a SAR from the Portal
        • Assigning a Request
      • Create a Manual Response
        • Searches
        • Subject
        • Collection Settings
        • Privacy Portal
      • Create and Manage Data Subject Types
    • Data for a SAR
      • Finding Information for a SAR
        • Payment Card Information (PCI)
        • Personally Identifiable Information (PII)
        • Redacting Sensitive Information
      • Messaging a SAR Requestor
      • Internal SAR Messaging
    • Completing a SAR
      • Finding a SAR
      • Getting Data Reviewed
        • Assigning Users to a SAR
      • Exporting a SAR Response
      • Disclosing to the Portal
  • Help and Support
    • Leaving Feedback
    • Accessibility Statement for Aiimi Insight Engine
  • Advanced Applications
    • Metrics
    • Manage Collection Type
      • Create a Collection Type
    • Using The Manage Chart
    • OData API
      • Getting OData from Aiimi Insight Engine
        • Query Parameters
Powered by GitBook
On this page
  • Optional query parameters:
  • Available Operators
  • Structure example
  • OData ID
  • Saved Search
  1. Advanced Applications
  2. OData API
  3. Getting OData from Aiimi Insight Engine

Query Parameters

Optional query parameters:

$top - The number of results to return. If not given it will return the maximum set by your administrator. ?$top=200 will return the top 200 results.

$skip - The number of results that are not returned in a result set. ?$skip=10 - This will not return the first 10 results.

If you apply both Skip and Top, skip will be applied first so you always get the correct number of results. For Example, skip=10 and top=30 would return results 11-40.

$search - The search term to be used. ?$search= water bills - This will return results for water bills.

$orderby - Choose which fields to order by and if ascending or descending. If no order is given asc (ascending) is applied by default. ?$orderby=Owner desc

$filter - Add filters to your search. ?$filter= Year gt 2008

You can combine multiple filters using "and" "or", "not" and "()". $filter= Year le 2004 and status eq false

Available Operators

eq - equal

ne - not equal

lt - less than

gt- greater than

le - less than or equal to

ge - greater than or equal to

Structure example

The curly {} brackets show where data is needed, the {} brackets are not needed in the query.

{apiUrl}/odata/{entitySetName}?username={username}&api-key={apikey}&{OtherParameters}

OData ID

All results will be returned with a unique ODataID. This can be used as the unique identifier or used to request a single file.

You can request a single result from the API if you have its ODataID. the ID must be within single quotation marks. - apiURL/odata/entitysetname('odataID')

Saved Search

You can use any saved searches from Aiimi Insight Engine. You can reference them by Name or ID.

  1. If you do not provide a type in the query it will default to name.

  2. it is not possible to query ?savedsearch and $search together.

Name

The name must be unique and the user must have access to that saved search.

  • ?savedSearch={SavedSearchName}&type=name

ID

If the saved search does not have a unique name you can use the ID.

  • ?savedSearch={savedSearchID}&type=id

You can find your saved search ID within Aiimi Insight Engine.

  1. Go to your saved searches.

  2. Select the options menu of the relevant saved search.

  3. Select the Saved Search ID to copy it to your clipboard.

PreviousGetting OData from Aiimi Insight Engine