EaserixDocs
DevelopersAPI referenceCronCrunchTimesheets

Apply a template to an empty week

Places the template's project and description rows on weekStart. The week must have no time and no activity rows. A submitted or approved week is 409. Hours are not copied. Activities whose project or task is no longer available are counted in unavailable and not placed. When none can be placed, the call is 400 and the week is unchanged.

View as Markdown
POST
/v1/timesheet-templates/{id}/apply
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/timesheet-templates/string/apply" \  -H "Content-Type: application/json" \  -d '{    "weekStart": "2019-08-24"  }'
{  "added": 0,  "unavailable": 0}