Within Global Settings of the control hub select OData API.
Enter the URL for the API in API URL.
This is configured when the API is built.
The entity sets for the OData API determine what a query will search. You much configure the name used during the search and the field within Aiimi Insight Engine that relates to.
Within Global Settings of the control hub select OData API.
Select New Entity Set.
This will open up the create entity set modal.
Enter a Unique Name for the entity set.
Select Source and check each source it will use from the dropdown.
Enter the maximum number of results that should be returned in Max Results.
When no $top is in a query this is the maximum number of results a query using this entity set can return.
By default this will be set to 100.
This number must be less than 10,000 or elastic will limit the results returned.
Select Continue.
This will take you to the fields section.
Enter a Name for this field within the data set.
This name must be unique across all entity sets.
Select a Field to add to the data set from the dropdown.
You can choose a generic field or a metadata or entity field from the sources selected.
If you select a Metadata or entity field a single value field checkbox will appear.
Check this to only return one value for this field even if there are multiple available. If left unchecked the query will return all the results in an array.
Once a field is selected the type will populate with Keyword, Boolean, Double etc.
Select Add to Set.
Each field will appear in a table below. You can add as many fields as you want to an entity set.
You can delete or edit fields in an entity set from this table using the Edit and Delete buttons.
Once you've added all your fields select Create Entity Set.
This will return you to the main OData API page.
Select Restart API to create these endpoints.
This will open a confirmation modal.
A restart may take a few minutes. While the API restarts users will have no access to the API.
Users must be authenticated in the control hub before they can use this API. Users must have a configured API key. Follow our Editing User Access guide to set this up.
Users need their API key to use and create queries for this API. Admins can get API keys from the control hub.
Within User Settings of the control hub.
Find the user you want to edit.
Search for a user within the search bar or, Select Show Filters and use the filters to narrow down users.
To edit multiple users at once, check the checkbox to the left of their name.
To get the API Key select the Key (key icon) and select Generate API Key.
This key is valid until revoked.
API keys are only available when first created. If it is lost or deleted, a new one will need to be generated.