※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。
GET /api/v1/time_entries/:id
Get time entry
サポートフォーマット
json例
GET /api/v1/time_entries/2045 200 { "id": 2045, "started_at": "2024-04-17T23:31:02.000Z", "stopped_at": "2024-04-18T00:31:02.000Z", "time_trackable_id": 7473, "time_trackable_type": "Task", "time_tracker_id": 3081, "time_tracker_type": "User", "created_at": "2024-04-17T23:31:02.000Z", "updated_at": "2024-04-18T00:31:02.000Z", "deleted_at": null, "duration": 3600.0, "amount": 0, "team_id": 3030, "input_type": "realtime", "stopped_at_seconds": 1713400262, "deleted_at_seconds": 0, "formatted_duration": "01:00", "html_url": "http://test.host/app/mytasks/7473/edit", "user": { "id": 3081, "nickname": "Emmy Schoen", "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "created_at": "2024-04-17T23:31:02.000Z", "updated_at": "2024-04-17T23:31:02.000Z", "deleted_at": null, "avatar": null, "daily": true, "daily_time": "2000-01-01T08:00:00.000Z", "weekly": true, "time_zone": "UTC", "locale": "en", "domain": "timecrowd.net", "reset_password_sent_at": null, "remember_created_at": null, "sign_in_count": 0, "current_sign_in_at": null, "last_sign_in_at": null, "confirmed_at": "2024-04-17T23:31:02.000Z", "confirmation_sent_at": null, "notify_exported": true, "deactivated_at": null, "calendar_zoom_rate": 1, "avatar_url": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50" }, "task": { "id": 7473, "key": "http://crist-moen.example/rich", "title": "Odit eius culpa nulla.", "url": "http://crist-moen.example/rich", "team_id": 3030, "created_at": "2024-04-17T23:31:02.000Z", "updated_at": "2024-04-18T00:31:02.000Z", "deleted_at": null, "description": null, "category": { "id": 7472, "key": "key56", "title": "key56", "url": null, "team_id": 3030, "created_at": "2024-04-17T23:31:02.000Z", "updated_at": "2024-04-18T00:31:02.000Z", "deleted_at": null, "description": null, "category": true, "sequential_id": null, "state": "open", "bill": 0, "ancestry": null, "ancestry_depth": 0, "closed_at": null, "color": 1, "position": 2, "deleted_at_seconds": 0, "key_md5": "10b170c60a971aa9e53c7b2bc701327c", "archived": false }, "sequential_id": null, "state": "open", "bill": 0, "ancestry": "7472", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": null, "deleted_at_seconds": 0, "key_md5": "54524461b17e4a15df2ba731f78c05a7", "archived": false, "team": { "id": 3030, "name": "California pigs", "created_at": "2024-04-17T23:31:02.000Z", "updated_at": "2024-04-17T23:31:02.000Z", "deleted_at": null, "time_limit": 0, "avatar": null, "personal": false, "premium": false, "ancestry": null, "rounding": "floor", "capacity": null, "hierarchized": false, "default_duration": 15, "tasks_readonly_role": "none", "workspaces_workspace_id": null, "tasks_readonly": false } }, "comment": null, "attachment": null, "team": { "id": 3030, "name": "California pigs", "created_at": "2024-04-17T23:31:02.000Z", "updated_at": "2024-04-17T23:31:02.000Z", "deleted_at": null, "time_limit": 0, "avatar": null, "personal": false, "premium": false, "ancestry": null, "rounding": "floor", "capacity": null, "hierarchized": false, "default_duration": 15, "tasks_readonly_role": "none", "workspaces_workspace_id": null, "tasks_readonly": false }, "category": { "id": 7472, "key": "key56", "title": "key56", "url": null, "team_id": 3030, "created_at": "2024-04-17T23:31:02.000Z", "updated_at": "2024-04-18T00:31:02.000Z", "deleted_at": null, "description": null, "category": true, "sequential_id": null, "state": "open", "bill": 0, "ancestry": null, "ancestry_depth": 0, "closed_at": null, "color": 1, "position": 2, "deleted_at_seconds": 0, "key_md5": "10b170c60a971aa9e53c7b2bc701327c", "archived": false } }