Organization and members
4 min
Read the organization tree
# Organization of the authenticated user
curl 'https://core.fsflt.net/organization/v1' -H 'x-api-key: YOUR_CLOUD_API_KEY'
# Direct children (e.g. dealer → end customers)
curl 'https://core.fsflt.net/organization/v1/children' -H 'x-api-key: YOUR_CLOUD_API_KEY'
# Members
curl 'https://core.fsflt.net/organization/v1/members' -H 'x-api-key: YOUR_CLOUD_API_KEY'{
"id": "0199f1c2-76a1-7b21-a758-a1cdab30d590",
"name": "John Due",
"timezoneId": "0199f187-7894-76f3-a8e4-4294794cda0e",
"type": "DEALER"
}type is DEALER for partners and END_CUSTOMER for final customers.
Create the tenant administrator
# 1. Available roles
curl 'https://core.fsflt.net/authentication/v1/roles' -H 'x-api-key: YOUR_CLOUD_API_KEY'
# 2. Create the member
curl -X POST 'https://core.fsflt.net/organization/v1/member' \
-H 'x-api-key: YOUR_CLOUD_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"username": "[email protected]",
"name": "Anna Wright",
"roleId": "0199e375-e27a-7a82-8b8e-84706f381512",
"organizationId": "019f88ef-7fb5-725c-88e8-0d7028d1b392"
}'Roles: SUPER_ADMIN, ADMIN, EDITOR, POLICY, READ_ONLY.
Method | Endpoint |
|---|---|
GET | /organization/v1/member/{memberId} |
PATCH | /organization/v1/member/{memberId} |
DELETE | /organization/v1/member/{memberId} |
Before creating a member, check GET /organization/v1/members for an existing username to avoid duplicates on retries.