{ "opencollection": "1.0.0", "info": { "name": "Hubstaff Activities Clients 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": "Clients", "type": "folder" }, "items": [ { "info": { "name": "List organization clients", "type": "http" }, "http": { "method": "GET", "url": "https://api.hubstaff.com/v2/organizations/:organization_id/clients", "params": [ { "name": "organization_id", "value": "", "type": "path" }, { "name": "page_start_id", "value": "", "type": "query", "description": "The page start ID." }, { "name": "page_limit", "value": "", "type": "query", "description": "The default page size" }, { "name": "status", "value": "", "type": "query", "description": "Client status" }, { "name": "include", "value": "", "type": "query", "description": "Specify related data to side load." } ] }, "docs": "Returns a collection of clients for the given organization.\n\nResults can be filtered by status." }, { "info": { "name": "Create client", "type": "http" }, "http": { "method": "POST", "url": "https://api.hubstaff.com/v2/organizations/:organization_id/clients", "params": [ { "name": "organization_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new client.\n\nReturns the created client." }, { "info": { "name": "Get client", "type": "http" }, "http": { "method": "GET", "url": "https://api.hubstaff.com/v2/clients/:client_id", "params": [ { "name": "client_id", "value": "", "type": "path", "description": "Client ID" } ] }, "docs": "Returns the client with the given ID." }, { "info": { "name": "Update client", "type": "http" }, "http": { "method": "PUT", "url": "https://api.hubstaff.com/v2/clients/:client_id", "params": [ { "name": "client_id", "value": "", "type": "path", "description": "Client ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates a client.\n\nReturns the updated client.\n\nOnly pass in the fields you want to change. To unset the budget, specify null as the value. To update the budget, you must specify the complete budget configuration. To clear invoice_notes or net_terms (to use organization defaults), specify null as the value." } ] } ], "bundled": true }