Reject a week and reopen it
Team workspaces only, owner or admin. Submitted or approved weeks can be rejected, except an approved week with any invoiced or paid time, which is 409. note is required. The member can edit that week and submit it again.
View as MarkdownAuthorization
bearer In: header
Path Parameters
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/string/reject" \ -H "Content-Type: application/json" \ -d '{ "note": "string" }'{ "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" }}Approve a submitted week
Team workspaces only, owner or admin. The week must be submitted. Approved weeks stay locked.
Copy last week onto this week
Copies the previous week's project and description rows onto weekStart. weekStart is YYYY-MM-DD and must be the first day of the caller's week. includeDurations also copies hours onto days that do not already have time. Days that already have time are left as they are and counted in skipped. A project the caller can no longer use is counted in unavailable. A submitted or approved week is 409 and is not changed. Last week having nothing to copy is 400.