Skip to main content
GET
/
v1
/
organizations
/
{organizationId}
/
tree
Get organization tree
curl --request GET \
  --url https://api.letsway.com/v1/organizations/{organizationId}/tree
{
  "name": "<string>",
  "segment": "<string>",
  "parentOrganizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "childOrganizations": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "segment": "<string>",
      "childOrganizations": "<unknown>",
      "parentOrganizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "brandCount": 123,
      "userCount": 123,
      "userPermissions": [
        "<string>"
      ]
    }
  ]
}

Path Parameters

organizationId
string

Response

200 - application/json

Organization tree

name
string
required
Minimum string length: 1
segment
string | null
required
parentOrganizationId
string<uuid> | null
childOrganizations
object[]