{ "opencollection": "1.0.0", "info": { "name": "Hubstaff Activities Organizations API", "version": "2.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://account.hubstaff.com/authorizations/new", "accessTokenUrl": "https://account.hubstaff.com/access_tokens", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Organizations", "type": "folder" }, "items": [ { "info": { "name": "List organizations", "type": "http" }, "http": { "method": "GET", "url": "https://api.hubstaff.com/v2/organizations", "params": [ { "name": "page_start_id", "value": "", "type": "query", "description": "The page start ID." }, { "name": "page_limit", "value": "", "type": "query", "description": "The default page size" } ] }, "docs": "Returns a collection of organizations the authenticated user is an active member of." }, { "info": { "name": "Create organization", "type": "http" }, "http": { "method": "POST", "url": "https://api.hubstaff.com/v2/organizations", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new organization.\n\nReturns the created organization." }, { "info": { "name": "Get organization", "type": "http" }, "http": { "method": "GET", "url": "https://api.hubstaff.com/v2/organizations/:organization_id", "params": [ { "name": "organization_id", "value": "", "type": "path", "description": "Organization ID" } ] }, "docs": "Returns the organization with the given ID." }, { "info": { "name": "Get organization seats", "type": "http" }, "http": { "method": "GET", "url": "https://api.hubstaff.com/v2/organizations/:organization_id/seats", "params": [ { "name": "organization_id", "value": "", "type": "path" } ] }, "docs": "Returns billing seat counters for the specified organization.\n\n- Paid seats are the total number of seats you are currently paying for.\n- Occupied is the total number of seats that are currently filled.\n- Open seats will be filled automatically when new members are added.\n Any open seats will be removed automatically when a new billing cycle starts,\n bringing down the number of paid seats to match the number of seats occupied." } ] } ], "bundled": true }