{ "opencollection": "1.0.0", "info": { "name": "When I Work API Documentation Accounts Schedule Templates API", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Schedule Templates", "type": "folder" }, "items": [ { "info": { "name": "List Schedule Templates", "type": "http" }, "http": { "method": "GET", "url": "https://api.wheniwork.com/2/templates" }, "docs": "List all the shift templates in an account" }, { "info": { "name": "Create Schedule Template", "type": "http" }, "http": { "method": "POST", "url": "https://api.wheniwork.com/2/templates", "body": { "type": "json", "data": "{}" } }, "docs": "Create a schedule template as a collection of shifts in a daily or weekly pattern which can be loaded to future schedules. The API will collect shifts which fall within the parameters provided; outline below." }, { "info": { "name": "Get Schedule Template", "type": "http" }, "http": { "method": "GET", "url": "https://api.wheniwork.com/2/templates/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the shift template" } ] }, "docs": "Get a single schedule template by ID" }, { "info": { "name": "Update Schedule Template", "type": "http" }, "http": { "method": "PUT", "url": "https://api.wheniwork.com/2/templates/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the schedule template" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a single schedule template" }, { "info": { "name": "Delete Schedule Template", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.wheniwork.com/2/templates/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the schedule template" } ] }, "docs": "Delete an existing schedule template when no longer needed. This operation cannot be undone." } ] } ], "bundled": true }