{ "opencollection": "1.0.0", "info": { "name": "ClimateAI Platform Account API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "items": [ { "info": { "name": "account", "type": "folder" }, "items": [ { "info": { "name": "Gets all accounts", "type": "http" }, "http": { "method": "GET", "url": "/account/" }, "docs": "Gets all accounts" }, { "info": { "name": "Create an account", "type": "http" }, "http": { "method": "POST", "url": "/account/", "body": { "type": "json", "data": "{}" } } }, { "info": { "name": "Search accounts", "type": "http" }, "http": { "method": "POST", "url": "/account/search", "body": { "type": "json", "data": "{}" } } }, { "info": { "name": "Retrieve account by id", "type": "http" }, "http": { "method": "GET", "url": "/account/:account_id", "params": [ { "name": "account_id", "value": "", "type": "path" } ] } }, { "info": { "name": "Update information about a specific account", "type": "http" }, "http": { "method": "PUT", "url": "/account/:account_id", "params": [ { "name": "account_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } } }, { "info": { "name": "Disable account by id", "type": "http" }, "http": { "method": "DELETE", "url": "/account/:account_id", "params": [ { "name": "account_id", "value": "", "type": "path" } ] } }, { "info": { "name": "Update an account is_onboarded", "type": "http" }, "http": { "method": "POST", "url": "/account/:account_id/is_onboarded", "params": [ { "name": "account_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } } }, { "info": { "name": "Gets a platform based on the account_id", "type": "http" }, "http": { "method": "GET", "url": "/account/:account_id/platform", "params": [ { "name": "account_id", "value": "", "type": "path" } ] } }, { "info": { "name": "Get a relation between the account/user", "type": "http" }, "http": { "method": "GET", "url": "/account/:account_id/user/:user_id/relation", "params": [ { "name": "account_id", "value": "", "type": "path" }, { "name": "user_id", "value": "", "type": "path" } ] } }, { "info": { "name": "Add a new account-user relationship", "type": "http" }, "http": { "method": "POST", "url": "/account/:account_id/user/:user_id/relation", "params": [ { "name": "account_id", "value": "", "type": "path" }, { "name": "user_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } } }, { "info": { "name": "Modify an existing account-user relationship", "type": "http" }, "http": { "method": "PUT", "url": "/account/:account_id/user/:user_id/relation", "params": [ { "name": "account_id", "value": "", "type": "path" }, { "name": "user_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } } }, { "info": { "name": "Delete an account-user relation", "type": "http" }, "http": { "method": "DELETE", "url": "/account/:account_id/user/:user_id/relation", "params": [ { "name": "account_id", "value": "", "type": "path" }, { "name": "user_id", "value": "", "type": "path" } ] } }, { "info": { "name": "Activate an account-user relationship", "type": "http" }, "http": { "method": "POST", "url": "/account/:account_id/user/:user_id/relation/activate", "params": [ { "name": "account_id", "value": "", "type": "path" }, { "name": "user_id", "value": "", "type": "path" } ] } } ] } ], "bundled": true }