Returns a list of all subregions including working groups of a region.
GET
/api/region/{regionId}/childrenThe result is empty if the region does not exist.
Authorizations
api_key
Type: API Key (header: X-CSRF-Token)
Parameters
Path Parameters
regionId*
ID of the region or 0 for the root region
Typeinteger
RequiredQuery Parameters
includeWorkingGroups
Typestring
Responses
success
Authorization
api_key
Variables
Key
Value
regionId*
includeWorkingGroups
cURL
curl -X GET \
'http://localhost/api/region/{regionId}/children'
Samples
cURL
curl -X GET http://localhost/api/region/{regionId}/children
JavaScript
fetch("http://localhost/api/region/{regionId}/children")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/region/{regionId}/children");
Python
import requests
response = requests.get("http://localhost/api/region/{regionId}/children")
print(response.json())