EaserixDocs
DevelopersAPI referenceCronCrunchTimesheets

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.

View as Markdown
POST
/v1/timesheets/copy
AuthorizationBearer <token>

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

curl -X POST "https://example.com/v1/timesheets/copy" \  -H "Content-Type: application/json" \  -d '{    "weekStart": "2019-08-24"  }'
{  "added": 0,  "entries": 0,  "skipped": 0,  "unavailable": 0}