EaserixDocs
DevelopersAPI referenceCronCrunchTimesheets

Approve a submitted week

Team workspaces only, owner or admin. The week must be submitted. Approved weeks stay locked.

View as Markdown
POST
/v1/timesheets/{id}/approve
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/timesheets/string/approve"
{  "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"  }}