{ "opencollection": "1.0.0", "info": { "name": "Employment Hero REST Bank Accounts Departments API", "version": "1.0.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://oauth.employmenthero.com/oauth2/authorize", "accessTokenUrl": "https://oauth.employmenthero.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Departments", "type": "folder" }, "items": [ { "info": { "name": "Create department", "type": "http" }, "http": { "method": "POST", "url": "https://api.employmenthero.com/api/v1/organisations/:organisation_id/departments", "params": [ { "name": "organisation_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create department" }, { "info": { "name": "Update department", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.employmenthero.com/api/v1/organisations/:organisation_id/departments/:department_id", "params": [ { "name": "organisation_id", "value": "", "type": "path" }, { "name": "department_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update department" } ] } ], "bundled": true }