EaserixDocs
DevelopersAPI referenceCronCrunchTimesheets

Save a week as a template

Stores the week's project and description rows under name. Hours are not stored. name is at most 80 characters and unique for the caller in this workspace, ignoring case. A week with no activities is 400. A submitted or approved week can still be saved, because saving does not change it.

View as Markdown
POST
/v1/timesheet-templates
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/timesheet-templates" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "weekStart": "2019-08-24"  }'
{  "template": {    "id": "string",    "name": "string",    "lines": [      {        "projectId": "string",        "projectName": "string",        "taskId": "string",        "taskName": "string",        "description": "string"      }    ]  }}