POST
/
time-entries
Create a time entry
curl --request POST \
  --url https://api.plane.com/v1/time-entries \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "worker": "<string>",
  "duration": 123,
  "date": "<string>",
  "note": "<string>"
}'
{ "id": "tme_1HPCXADYAhh5k1NMU0r1WUqs" }

Parameters

worker
string
required
The ID of an existing worker this time entry is for.
duration
decimal
required
The duration of the time entry in hours. Must be greater than 0 and less than 24.
date
date
required
The date this time entry is for.
note
string
Optional note about the time entry.

Returns

Returns the new time entry ID on success.
{ "id": "tme_1HPCXADYAhh5k1NMU0r1WUqs" }