{ "opencollection": "1.0.0", "info": { "name": "When I Work API Documentation Accounts Sites API", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Sites", "type": "folder" }, "items": [ { "info": { "name": "List Sites", "type": "http" }, "http": { "method": "GET", "url": "https://api.wheniwork.com/2/sites", "params": [ { "name": "include_deleted", "value": "", "type": "query", "description": "Include deleted sites" } ] }, "docs": "List all the sites in an account" }, { "info": { "name": "Create Site", "type": "http" }, "http": { "method": "POST", "url": "https://api.wheniwork.com/2/sites", "body": { "type": "json", "data": "{}" } }, "docs": "Used to create a site within an account" }, { "info": { "name": "Get Site", "type": "http" }, "http": { "method": "GET", "url": "https://api.wheniwork.com/2/sites/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the site" } ] }, "docs": "Get a single site by ID" }, { "info": { "name": "Update Site", "type": "http" }, "http": { "method": "PUT", "url": "https://api.wheniwork.com/2/sites/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the site" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates a single site" }, { "info": { "name": "Delete Site", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.wheniwork.com/2/sites/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the site" }, { "name": "ids", "value": "1,2,3,4", "type": "query", "description": "The IDs of the multiple shift templates" } ] }, "docs": "Delete an existing site when no longer needed. This operation cannot be undone. \n" } ] } ], "bundled": true }