{ "opencollection": "1.0.0", "info": { "name": "Cube Agents User API", "version": "1.0.0 (1.0)" }, "items": [ { "info": { "name": "User", "type": "folder" }, "items": [ { "info": { "name": "Will return user information.", "type": "http" }, "http": { "method": "GET", "url": "https://api.cubesoftware.com/user", "headers": [ { "name": "X-Company-ID", "value": "" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Will return user information." }, { "info": { "name": "Get User's Companies", "type": "http" }, "http": { "method": "GET", "url": "https://api.cubesoftware.com/user/companies", "headers": [ { "name": "X-Company-ID", "value": "" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "If a company has multiple currencies enabled, those will be listed as well. Otherwise, USD is the default for all companies.\n " }, { "info": { "name": "Get User Company Settings", "type": "http" }, "http": { "method": "GET", "url": "https://api.cubesoftware.com/user/company/settings", "headers": [ { "name": "X-Company-ID", "value": "" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "This endpoint can be used to retrieve the user's company-specific settings. All available settings will be returned.\n " }, { "info": { "name": "Update User Company Settings", "type": "http" }, "http": { "method": "POST", "url": "https://api.cubesoftware.com/user/company/settings", "headers": [ { "name": "X-Company-ID", "value": "" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "This endpoint can be used to update the user's company-specific settings. Only the settings\n included in the request data will be updated.\n " }, { "info": { "name": "Initiates the forgot password process.", "type": "http" }, "http": { "method": "POST", "url": "https://api.cubesoftware.com/user/password/forgot", "headers": [ { "name": "X-Company-ID", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Initiates the forgot password process." }, { "info": { "name": "Get Spreadsheet Settings", "type": "http" }, "http": { "method": "GET", "url": "https://api.cubesoftware.com/user/settings/spreadsheets", "headers": [ { "name": "X-Company-ID", "value": "" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "This endpoint returns dimension and user settings for the open spreadsheet. It gives\n reasonable dimension defaults when the user hasn't specified dimensions to use for rows, columns,\n filters inside of a Cube add-on. These defaults are based on commonly used dimensions for a given top\n level dimension (i.e. \"Actuals\" for \"Scenario\"). It also gives user data such as whether or not to show\n the 'undo' warning in Excel files.\n " }, { "info": { "name": "Update Spreadsheet Settings", "type": "http" }, "http": { "method": "POST", "url": "https://api.cubesoftware.com/user/settings/spreadsheets/update", "headers": [ { "name": "X-Company-ID", "value": "" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "This endpoint can be used to update whether or not to show the Excel 'Undo' warning,\n when the user toggles that they would not like to be warned again.\n " }, { "info": { "name": "Get User's Companies with Permissions", "type": "http" }, "http": { "method": "GET", "url": "https://api.cubesoftware.com/user/user_companies", "headers": [ { "name": "X-Company-ID", "value": "" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Will return companies and permissions the user has access to." } ] } ], "bundled": true }