This guide will show you how to create isolated data groups, which pongo calls sub-organizations.

Information in each sub-organization is stored separately to prevent cross-access or data contamination.

Create a Sub-Organization

See API Reference for more endpoints and details.

import pongo

#Replace they keys with your actual API key
pongo_client = pongo.PongoClient(PONGO_SECRET_KEY)

response = pongo_client.create_sub_org(sub_org_name='Tutorial Organization')
created_sub_organization_data = response.json()
sub_org_id = created_sub_organization_data['sub_org_id']

Get All Sub Organizations

See API Reference for more endpoints and details.

import pongo

#Replace they keys with your actual API keys
pongo_client = pongo.PongoClient(PONGO_SECRET_KEY)

response = pongo_client.get_sub_orgs()
sub_organizations_data = response.json()