{ "opencollection": "1.0.0", "info": { "name": "ZenHR Approvals Work Location 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": "Work Location", "type": "folder" }, "items": [ { "info": { "name": "List Work Locations", "type": "http" }, "http": { "method": "GET", "url": "https://app.zenhr.com/api/v3/branches/:branch_id/sites", "params": [ { "name": "branch_id", "value": "", "type": "path" } ] }, "docs": "List Work Locations" }, { "info": { "name": "Get Work Location", "type": "http" }, "http": { "method": "GET", "url": "https://app.zenhr.com/api/v3/branches/:branch_id/sites/:site_id", "params": [ { "name": "branch_id", "value": "", "type": "path" }, { "name": "site_id", "value": "", "type": "path" } ] }, "docs": "Get Work Location" }, { "info": { "name": "Create Work Location", "type": "http" }, "http": { "method": "POST", "url": "https://app.zenhr.com/api/v3/branches/:branch_id/sites/:site_id", "params": [ { "name": "branch_id", "value": "", "type": "path" }, { "name": "site_id", "value": "", "type": "path" } ] }, "docs": "Create Work Location" }, { "info": { "name": "Delete Work Location", "type": "http" }, "http": { "method": "DELETE", "url": "https://app.zenhr.com/api/v3/branches/:branch_id/sites/:site_id", "params": [ { "name": "branch_id", "value": "", "type": "path" }, { "name": "site_id", "value": "", "type": "path" } ] }, "docs": "Delete Work Location" } ] } ], "bundled": true }