Get Locations Tree
GET
/v1/entities/tree
const url = 'https://example.com/api/v1/entities/tree';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/entities/tree \ --header 'Authorization: <Authorization>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”withItems
boolean
Include items in response tree
Responses
Section titled “Responses”OK
Media typeapplication/json
Array<object>
object
children
Array<object> recursive
id
string
name
string
type
string
Examplegenerated
[ { "children": [], "id": "example", "name": "example", "type": "example" }]