PUT
/
api
/
v3
/
timeentries
curl --request PUT \
  --url https://{host}/api/v3/timeentries \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 552586,
  "ownerId": 90,
  "unit": 2,
  "startsAt": "2024-04-22T08:30:00",
  "duration": "04:45:00",
  "creationSource": 2,
  "axisSections": [
    {
      "id": 42
    },
    {
      "id": 127
    },
    {
      "id": 346
    },
    {
      "id": 347
    }
  ],
  "comment": {
    "content": "This is another comment"
  },
  "timeTypeId": 1
}'
{
  "data": {
    "id": 552586,
    "ownerId": 90,
    "owner": {
      "id": 90,
      "name": "Hélène Girard",
      "url": "https://demotimmi7.ilucca-test.net/api/v3/timesheetusers/90"
    },
    "unit": 2,
    "startsAt": "2024-04-22T09:30:00",
    "duration": "03:45:00",
    "endsAt": "2024-04-22T13:15:00",
    "authorId": 90,
    "createdAt": "2024-07-04T11:59:51.09",
    "modifierId": 90,
    "modifiedAt": "2024-07-04T17:00:54.4",
    "archivedAt": null,
    "creationSource": 2,
    "layer": 0,
    "axisSections": [
      {
        "id": 41,
        "name": "Conception",
        "url": "https://demotimmi7.ilucca-test.net/api/v3/axissections/41"
      },
      {
        "id": 127,
        "name": "Animal Logic",
        "url": "https://demotimmi7.ilucca-test.net/api/v3/axissections/127"
      },
      {
        "id": 346,
        "name": "Projet Rose  : KPI - tableau de bord",
        "url": "https://demotimmi7.ilucca-test.net/api/v3/axissections/346"
      },
      {
        "id": 347,
        "name": "Art Direction",
        "url": "https://demotimmi7.ilucca-test.net/api/v3/axissections/347"
      }
    ],
    "comment": {
      "id": 59,
      "name": "This is a comment",
      "url": "https://demotimmi7.ilucca-test.net/api/v3/timeentrycomments/59"
    },
    "timeTypeId": null,
    "timesheetId": 10967,
    "timesheet": {
      "id": 10967,
      "name": "90 - avril 2024 - Submitted",
      "url": "https://demotimmi7.ilucca-test.net/api/v3/timmitimesheets/10967"
    }
  }
}

Headers

Authorization
string
required

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

Body

application/json

You can either update a single or multiple TimeEntries. Pick the correct body type accordingly.

The body is of type object.

Response

200
application/json

OK

The response is of type object.