Deputy API
12 endpoints for Deputy, each at its own method and path, called with your API key. Open an endpoint for its inputs, examples and response.
- Base URL
- https://cotlet.dev/api/v1/deputy
- Connects with
- Your own Deputy account (Location Manager or System Administrator to approve time and pay, Supervisor for the time part only)
- Integration page
- Deputy
Read (6)
Return data and change nothing in the account.
| Endpoint | Description |
|---|---|
| GET | Locations of your Deputy install with their IDs. |
| GET | Team members of a location with their IDs. |
| GET | Shifts of a location between two dates, draft, open and published. |
| GET | Timesheets of a location, oldest first, pending or approved. |
| GET | One timesheet with its break, comment and the shift it belongs to. |
| GET | Pending leave requests with employee, dates, leave type and comment. |
Write (6)
Change the account. Calls marked Confirm wait for the user to approve them.
| Endpoint | Description |
|---|---|
| POST | Add a shift to a location as a draft that only managers see. |
| POST | Publish the draft shifts of a location between two dates to the team. |
| POST | Approve one pending timesheet. |
| POST | Discard a timesheet for a shift that was not worked. |
| POST | Approve a pending leave request and set the hours of each day. |
| POST | Decline a pending leave request with a reason. |