{ "opencollection": "1.0.0", "info": { "name": "ZenHR Approvals Departments API", "version": "v3" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.zenhr.com/en/oauth/authorize", "accessTokenUrl": "https://api.zenhr.com/en/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Departments", "type": "folder" }, "items": [ { "info": { "name": "List Departments", "type": "http" }, "http": { "method": "GET", "url": "https://app.zenhr.com/api/v3/branches/:branch_id/departments", "params": [ { "name": "branch_id", "value": "", "type": "path" } ] }, "docs": "List Departments" }, { "info": { "name": "Get Department", "type": "http" }, "http": { "method": "GET", "url": "https://app.zenhr.com/api/v3/branches/:branch_id/departments/:department_id", "params": [ { "name": "branch_id", "value": "", "type": "path" }, { "name": "department_id", "value": "", "type": "path" } ] }, "docs": "Get Department" }, { "info": { "name": "Create Department", "type": "http" }, "http": { "method": "POST", "url": "https://app.zenhr.com/api/v3/branches/:branch_id/departments/:department_id", "params": [ { "name": "branch_id", "value": "", "type": "path" }, { "name": "department_id", "value": "", "type": "path" } ] }, "docs": "Create Department" }, { "info": { "name": "Delete Department", "type": "http" }, "http": { "method": "DELETE", "url": "https://app.zenhr.com/api/v3/branches/:branch_id/departments/:department_id", "params": [ { "name": "branch_id", "value": "", "type": "path" }, { "name": "department_id", "value": "", "type": "path" } ] }, "docs": "Delete Department" } ] } ], "bundled": true }