POST
/
api
/
v3
/
timeentries
curl --request POST \
  --url https://{host}/api/v3/timeentries \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ownerId": 90,
  "unit": 2,
  "startsAt": "2024-04-22T09:30:00",
  "duration": "03:45:00",
  "creationSource": 2,
  "axisSections": [
    {
      "id": 41
    },
    {
      "id": 127
    },
    {
      "id": 346
    },
    {
      "id": 347
    }
  ],
  "comment": {
    "content": "This is a comment"
  },
  "timeTypeId": null
}'
{
  "data": {
    "id": 1234,
    "ownerId": 90,
    "unit": 2,
    "startsAt": "2024-04-22T09:30:00",
    "duration": "03:45:00",
    "creationSource": 2,
    "axisSections": [
      {
        "id": 41
      },
      {
        "id": 127
      }
    ],
    "comment": {
      "content": "This is a comment"
    },
    "timeTypeId": null
  }
}

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Body

application/json

Create a single of multiple TimeEntry (toggle body type).

The body is of type object.

Response

200
application/json

OK

The response is of type object.