{ "opencollection": "1.0.0", "info": { "name": "ZenHR Approvals Documents 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": "Documents", "type": "folder" }, "items": [ { "info": { "name": "List Documents for a branch", "type": "http" }, "http": { "method": "GET", "url": "https://app.zenhr.com/api/v3/branches/:branch_id/documents", "params": [ { "name": "branch_id", "value": "", "type": "path" } ] }, "docs": "List Documents for a branch" }, { "info": { "name": "Create Document", "type": "http" }, "http": { "method": "POST", "url": "https://app.zenhr.com/api/v3/branches/:branch_id/documents", "params": [ { "name": "branch_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create Document" }, { "info": { "name": "Get Document", "type": "http" }, "http": { "method": "GET", "url": "https://app.zenhr.com/api/v3/branches/:branch_id/documents/:document_id", "params": [ { "name": "branch_id", "value": "", "type": "path" }, { "name": "document_id", "value": "", "type": "path" } ] }, "docs": "Get Document" }, { "info": { "name": "Edit Document", "type": "http" }, "http": { "method": "PATCH", "url": "https://app.zenhr.com/api/v3/branches/:branch_id/documents/:document_id", "params": [ { "name": "branch_id", "value": "", "type": "path" }, { "name": "document_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Edit Document" }, { "info": { "name": "Delete Document", "type": "http" }, "http": { "method": "DELETE", "url": "https://app.zenhr.com/api/v3/branches/:branch_id/documents/:document_id", "params": [ { "name": "branch_id", "value": "", "type": "path" }, { "name": "document_id", "value": "", "type": "path" } ] }, "docs": "Delete Document" } ] } ], "bundled": true }