EaserixDocs
DevelopersAPI referenceCronCrunchTimesheets

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 Markdown
POST
/v1/timesheets/submit
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

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"  }}