Submit a week for approval
Team workspaces only. weekStart is YYYY-MM-DD and must be the first day of the caller's week (Monday, or Sunday when that is their preference) and not in the future. A rejected week can be submitted again. A week that is already submitted or approved is 409, and so is a week while a timer started in or before it is still running.
View as MarkdownAuthorization
bearer In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/timesheets/submit" \ -H "Content-Type: application/json" \ -d '{ "weekStart": "2019-08-24" }'{ "timesheet": { "id": "string", "ownerId": "string", "weekStart": "2019-08-24", "status": "submitted", "submittedAt": "2019-08-24T14:15:22Z", "reviewedBy": "string", "reviewedAt": "2019-08-24T14:15:22Z", "note": "string" }}Expense report as CSV
The same window as the JSON report, one row per expense, oldest first. Columns: date, type, client, project, pricing, quantity, unit_rate, amount, billable, note, receipt. A value that would be a spreadsheet formula is prefixed with an apostrophe.
The caller's submitted weeks
Team workspaces only. The caller's own rows in this workspace, newest week first, at most 104. weekStart limits the list to that week.