EaserixDocs
DevelopersAPI referenceCronCrunchEntries

Update an entry

Partial update. projectId must be readable by the caller (their own or an org-shared project). startedAt/endedAt are strict RFC3339; durationSeconds recomputes endedAt from startedAt (rejected on a running timer). endedAt must not precede startedAt; duration_seconds is recomputed whenever times change.

View as Markdown
PATCH
/v1/time-entries/{id}
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

curl -X PATCH "https://example.com/v1/time-entries/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "entry": {    "id": "string",    "projectId": "string",    "projectName": "string",    "projectColor": "string",    "clientName": "string",    "description": "string",    "startedAt": "2019-08-24T14:15:22Z",    "endedAt": "2019-08-24T14:15:22Z",    "durationSeconds": 0,    "isRunning": true,    "isBillable": true,    "billingStatus": "string",    "tags": [      {        "id": "string",        "name": "string",        "color": "string",        "created": "2019-08-24T14:15:22Z"      }    ]  }}