Retrieve the list of location groups in an organization

The purpose of this API is to retrieve the list of all location groups in an organization on the listing page.

Response object

GetLocationGroupsResponse

Json PropertyData TypeDescription
location_groupsListList of location groups
num_recordsintNumber of records
errorAPIV2ErrorModelError while retrieving the data

LocationGroup

Json PropertyData TypeDescription
idstringLocation group ID
namestringLocation group name
zone_idstringZone ID
codestringLocation group code
descriptionstringLocation group description
centersListList of centers in the location group

LocationGroups

Json PropertyData TypeDescription
location_group_idStringUnique identifier for the location group
location_group_nameStringName of the location group
zone_idStringIdentifier for the associated zone
location_group_codeStringCode for the location group
location_group_descStringDescription of the location group
centersArrayList of centers within the location group
center_idsArray/NullList of center IDs or null if not present

Center

Json PropertyData TypeDescription
center_idStringUnique identifier for the center
center_nameStringName of the center

Root Object

Json PropertyData TypeDescription
location_groupsArrayList of location groups
errorNullError information, null if no error
Language
Credentials
Header
Click Try It! to start a request and see the response here!