Retrieve all time spents linked to a given entity.

GET /data/entities/{entity_id}/time-spents

Path parameters

  • entity_id string(uuid) Required

Responses

  • 200 application/json

    All time spents linked to given entity

    Hide response attributes Show response attributes object
    • id string(uuid)
    • duration number(float)
    • date string(date)
    • created_at string(date-time)
    • person_id string(uuid)
    • entity_id string(uuid)
  • 404

    Entity not found

GET /data/entities/{entity_id}/time-spents
curl \
 --request GET 'http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/time-spents' \
 --header "Authorization: $API_KEY"
Response examples (200)
[
  {
    "id": "string",
    "duration": 2.5,
    "date": "2023-12-07",
    "created_at": "2025-05-04T09:42:00Z",
    "person_id": "string",
    "entity_id": "string"
  }
]