EaserixDocs
DevelopersAPI referenceCronCrunchTimesheets

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 Markdown
POST
/v1/timesheets/{id}/reject
AuthorizationBearer <token>

In: header

Path Parameters

id*string

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