Unit Portal API Information
Background
The Unit Portal application uses API's to manage its data. Below is information on those APIs and how to use them.
Description
Here are a couple calls that may be helpful, there is more information on the Unit Portal API at https://unitportalapi.sauss.net/Help. To make any calls you will need to add the "System-Token" setting to the header of your API call. The API does not require a username or password, just the "System-Token" in the heading.
- Via the GET api/unit/id with the UnitID defined within the UP. This would only work if you are using the list of Units from the UP.
- Via the undocumented GETapi/UnitHierarchy/includeunits/true which returns all of the data that you need to load the hierarchy. We use this one internally to load the treeview in theUnitPortalso it should provide all of the data you need for the complete list in a way that it can be loaded into a hierarchical view.
For more information on how the Unit Portal API calls please refer to the documentation at https://unitportalapi.sauss.net/Help.
Related articles