openapi: 3.0.3 info: version: 1.0.0 title: When I Work API Documentation Accounts Import API description: 'The When I Work API is thorough, flexible, and restful. Its methods are logically grouped and follow standard conventions. Make a selection from the left to jump to the method group you would like to know more about. When designing your integration, When I Work recommends leveraging our Webhooks subscriptions if you plan to regularly pull data to sync records in your data store. This may be preferable to using our API for tasks like staying up to date about shifts or time entries in your account. Frequent large API requests may run into rate limitations. Find out more about Webhooks at our [Help Center](https://help.wheniwork.com/articles/webhooks-reference/) or contact our [Customer Care team](mailto:support@wheniwork.com) for assistance. For more information about obtaining an API key, or general API questions, please refer to the [Help Center](https://help.wheniwork.com/articles/api-services-reference-guide/). ' servers: - url: https://api.wheniwork.com description: Production security: - W-Token: [] tags: - name: Import description: "The import API is used to import a variety of When I Work resources from user-provided CSV or Excel files.\n\n### Import Types\n\nAll available import types and their columns are listed here. Where possible, the column names will align with names used elsewhere in the API, but this is not always possible.\n\n
| type | \ncolumns | \nrequired? | \nnotes | \n
|---|---|---|---|
SHIFT_TEMPLATE | \n start_time | \n✅ | \n\n |
| end_time | \n✅ | \n\n | |
| schedule | \n\n | \n A schedule name to associate with the shift template. If no schedule with that name exists, a new schedule will be created. \nIf omitted, the shift template will be assigned to all schedules (or the value \"All Schedules\" can be provided to do the same). \n | \n |
| position | \n\n | \n A position name to associate with the shift template. If no position with that name exists, a new position will be created. \n | \n |
| unpaid_break | \n\n | The length of the unpaid break in minutes. | \n|
EMPLOYEE | \n first_name | \n✅ | \nFirst name of the employee | \n
| last_name | \n✅ | \nLast name of the employee | \n|
| \n | The email address of the employee | \n||
| employee_code | \n\n | The employee code to associate with the employee | \n|
| file_number | \n\n | The file number corresponding to the employee in ADP | \n|
| id | \n\n | The user id corresponding to the employee in When I Work | \n|
| location | \n\n | \n A schedule (location) name to associate with the employee. If no schedule with that name exists, a new schedule will be created. \n | \n |
| max | \n\n | The maximum hours per week of the employee | \n|
| phone | \n\n | The phone number of the employee | \n|
| position | \n\n | \n A position name to associate with the employee. If no position with that name exists, a new position will be created. \n | \n |
| tags | \n\n | \n A comma separated list of tags to associate to the employee. If the tag does not exist, it will be created. \n | \n |
| wage | \n\n | \n The hourly rate of the employee expressed as a floating point number (e.g. 14.50) \n | \n