{ "opencollection": "1.0.0", "info": { "name": "Aha! Account backups Team memberships API", "version": "1.0.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://{account-domain}.aha.io/oauth/authorize", "accessTokenUrl": "https://{account-domain}.aha.io/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Team memberships", "type": "folder" }, "items": [ { "info": { "name": "List team memberships for a team", "type": "http" }, "http": { "method": "GET", "url": "https://{account-domain}.aha.io/api/v1/api/v1/teams/:team_id/team_memberships", "params": [ { "name": "team_id", "value": "", "type": "path", "description": "TeamId identifier" }, { "name": "fields", "value": "team_member,team,created_at", "type": "query" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://{account-domain}.aha.io/oauth/authorize", "accessTokenUrl": "https://{account-domain}.aha.io/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Team memberships for capacity planning teams. Users can be either Aha! users or virtual users" }, { "info": { "name": "Add user to a team", "type": "http" }, "http": { "method": "POST", "url": "https://{account-domain}.aha.io/api/v1/api/v1/teams/:team_id/team_memberships", "params": [ { "name": "team_id", "value": "", "type": "path", "description": "TeamId identifier" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://{account-domain}.aha.io/oauth/authorize", "accessTokenUrl": "https://{account-domain}.aha.io/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Team memberships for capacity planning teams. Users can be either Aha! users or virtual users" }, { "info": { "name": "Remove a user from a team", "type": "http" }, "http": { "method": "DELETE", "url": "https://{account-domain}.aha.io/api/v1/api/v1/teams/:team_id/team_memberships/:id", "params": [ { "name": "team_id", "value": "", "type": "path", "description": "TeamId identifier" }, { "name": "id", "value": "", "type": "path", "description": "Id identifier" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://{account-domain}.aha.io/oauth/authorize", "accessTokenUrl": "https://{account-domain}.aha.io/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Team memberships for capacity planning teams. Users can be either Aha! users or virtual users" } ] } ], "bundled": true }