SDK reference
Organizations and members
GET/
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.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/members' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The organization's id, slug, name, kind and creation time.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Renames the organization. The slug doesn't change.
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example"
}'GET/
What still has to be removed before the org can be deleted.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/contents' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
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.
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"