{ "opencollection": "1.0.0", "info": { "name": "IO.Common Accounts Reports API", "version": "1.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://identity.scanbro.com/connect/authorize", "accessTokenUrl": "https://identity.scanbro.com/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Reports", "type": "folder" }, "items": [ { "info": { "name": "Get user saved report states", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/Reports", "params": [ { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://identity.scanbro.com/connect/authorize", "accessTokenUrl": "https://identity.scanbro.com/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get user saved report states" }, { "info": { "name": "Saves (upserts) user defined custom report state", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/Reports", "params": [ { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://identity.scanbro.com/connect/authorize", "accessTokenUrl": "https://identity.scanbro.com/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Saves (upserts) user defined custom report state" }, { "info": { "name": "Returns the saved report view payload by viewId", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/Reports/:viewId", "params": [ { "name": "viewId", "value": "", "type": "path" }, { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://identity.scanbro.com/connect/authorize", "accessTokenUrl": "https://identity.scanbro.com/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Returns the saved report view payload by viewId" }, { "info": { "name": "Returns the users, groups and accounts available as report state targets for the calling user,\r\nbased on their group's account relationships.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/Reports/targets", "params": [ { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://identity.scanbro.com/connect/authorize", "accessTokenUrl": "https://identity.scanbro.com/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Returns the users, groups and accounts available as report state targets for the calling user,\r\nbased on their group's account relationships." }, { "info": { "name": "To set users default report state", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/Reports/userDefault", "params": [ { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://identity.scanbro.com/connect/authorize", "accessTokenUrl": "https://identity.scanbro.com/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "To set users default report state" }, { "info": { "name": "Update saved report state", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/v1/Reports/:reportId", "params": [ { "name": "reportId", "value": "", "type": "path" }, { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://identity.scanbro.com/connect/authorize", "accessTokenUrl": "https://identity.scanbro.com/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Update saved report state" }, { "info": { "name": "Delete saved report state", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/v1/Reports/:reportId", "params": [ { "name": "reportId", "value": "", "type": "path" }, { "name": "Account", "value": "", "type": "query", "description": "Account" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://identity.scanbro.com/connect/authorize", "accessTokenUrl": "https://identity.scanbro.com/connect/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Delete saved report state" } ] } ], "bundled": true }