SDK reference

Organizations and members

Each route's function in the SDK, its call beside the same request in cURL.
orgMembers

GET/v1/orgs/:orgId/members

Members with their role, email, name and join time, and the organization's teams with their size. Callers with members:write also get pending invites.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/members' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
org

GET/v1/orgs/:orgId

The organization's id, slug, name, kind and creation time.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrg

PATCH/v1/orgs/:orgId

Renames the organization. The slug doesn't change.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example"
  }'
orgContents

GET/v1/orgs/:orgId/contents

What still has to be removed before the org can be deleted.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/contents' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrg

DELETE/v1/orgs/:orgId

Deletes a customer org: owners only, and only once contents counts nothing. Its data in every app goes with it: Notes pages (history, files and comments included), then each service's handler (purgeOrgData: Tasks, Customers, Marketing, Maps, Drive's folders, sharing, keys…), then members, teams, invites, API keys and the SES tenant. Data is deleted for a while per request: until it's all gone it answers 202 with what's left, the org and its members stay, and asking again goes on. A service that fails answers 503, the same.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"