※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。
PATCH /api/v1/time_entries/:id
Update a time entry
Supported Formats
jsonExamples
PATCH /api/v1/time_entries/16 { "time_entry": { "started_at": "1748762697", "time_trackable_id": "182" } } 200 { "started_at": "2025-06-01T16:24:57.000+09:00", "time_trackable_id": 182, "team_id": 79, "time_tracker_id": 80, "time_tracker_type": "User", "deleted_at": null, "id": 16, "input_type": "realtime", "stopped_at": "2025-06-02T17:24:57.000+09:00", "stopped_at_seconds": 1748852697, "deleted_at_seconds": 0, "duration": 90000.0, "amount": 0, "time_trackable_type": "Task", "created_at": "2025-06-02T16:24:57.000+09:00", "updated_at": "2025-06-02T16:24:58.000+09:00", "external_identifier": null, "external_provider": "none", "formatted_duration": "25:00", "html_url": "http://test.host/app/mytasks/182/edit", "user": { "id": 80, "nickname": "Sen. Brenda Abbott", "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "created_at": "2025-06-02T16:24:57.000+09:00", "updated_at": "2025-06-02T16:24:58.000+09:00", "deleted_at": null, "avatar": null, "daily": true, "daily_time": "2000-01-01T17:00:00.000+09:00", "weekly": true, "time_zone": "Tokyo", "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": "2025-06-02T16:24:57.000+09:00", "confirmation_sent_at": null, "deactivated_at": null, "calendar_zoom_rate": 1, "avatar_url": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50" }, "task": { "state": "open", "updated_at": "2025-06-02T16:24:58.000+09:00", "id": 182, "key": "http://hartmann-leuschke.test/gregg", "title": "Mollitia alias minima at.", "url": "http://hartmann-leuschke.test/gregg", "team_id": 79, "created_at": "2025-06-02T16:24:58.000+09:00", "deleted_at": null, "description": null, "category": { "id": 181, "key": "key64", "title": "key64", "url": null, "team_id": 79, "created_at": "2025-06-02T16:24:57.000+09:00", "updated_at": "2025-06-02T16:24:58.000+09:00", "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": 3, "deleted_at_seconds": 0, "key_md5": "68c80146ebd178ece3d4f17554d1af74", "archived": false, "category_id": null, "ancestry_path": "/", "selectable": true }, "sequential_id": null, "bill": 0, "ancestry": "181", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": null, "deleted_at_seconds": 0, "key_md5": "77daca70293fcdecb5408af586e63754", "archived": false, "category_id": 181, "ancestry_path": "/181/", "selectable": true, "team": { "id": 79, "name": "Idaho gooses", "created_at": "2025-06-02T16:24:57.000+09:00", "updated_at": "2025-06-02T16:24:58.000+09:00", "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": 109, "tasks_readonly": false } }, "comment": null, "team": { "id": 79, "name": "Idaho gooses", "created_at": "2025-06-02T16:24:57.000+09:00", "updated_at": "2025-06-02T16:24:58.000+09:00", "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": 109, "tasks_readonly": false }, "category": { "id": 181, "key": "key64", "title": "key64", "url": null, "team_id": 79, "created_at": "2025-06-02T16:24:57.000+09:00", "updated_at": "2025-06-02T16:24:58.000+09:00", "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": 3, "deleted_at_seconds": 0, "key_md5": "68c80146ebd178ece3d4f17554d1af74", "archived": false, "category_id": null, "ancestry_path": "/", "selectable": true } }
PATCH /api/v1/time_entries/17 {} 200 { "id": 17, "started_at": "2025-06-02T16:24:58.000+09:00", "stopped_at": "2025-06-02T17:24:58.000+09:00", "time_trackable_id": 185, "time_trackable_type": "Task", "time_tracker_id": 81, "time_tracker_type": "User", "created_at": "2025-06-02T16:24:58.000+09:00", "updated_at": "2025-06-02T17:24:58.000+09:00", "deleted_at": null, "duration": 3600.0, "amount": 0, "team_id": 80, "input_type": "realtime", "stopped_at_seconds": 1748852698, "deleted_at_seconds": 0, "external_identifier": null, "external_provider": "none", "formatted_duration": "01:00", "html_url": "http://test.host/app/mytasks/185/edit", "user": { "id": 81, "nickname": "Kai Reichel", "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "created_at": "2025-06-02T16:24:58.000+09:00", "updated_at": "2025-06-02T17:24:58.000+09:00", "deleted_at": null, "avatar": null, "daily": true, "daily_time": "2000-01-01T17:00:00.000+09:00", "weekly": true, "time_zone": "Tokyo", "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": "2025-06-02T16:24:58.000+09:00", "confirmation_sent_at": null, "deactivated_at": null, "calendar_zoom_rate": 1, "avatar_url": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50" }, "task": { "id": 185, "key": "http://schroeder.test/donte.heidenreich", "title": "Laudantium amet pariatur molestiae.", "url": "http://schroeder.test/donte.heidenreich", "team_id": 80, "created_at": "2025-06-02T16:24:58.000+09:00", "updated_at": "2025-06-02T17:24:58.000+09:00", "deleted_at": null, "description": null, "category": { "id": 184, "key": "key65", "title": "key65", "url": null, "team_id": 80, "created_at": "2025-06-02T16:24:58.000+09:00", "updated_at": "2025-06-02T17:24:58.000+09:00", "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": "1add6a70aef48da2cbdf222441b54815", "archived": false, "category_id": null, "ancestry_path": "/", "selectable": true }, "sequential_id": null, "state": "open", "bill": 0, "ancestry": "184", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": null, "deleted_at_seconds": 0, "key_md5": "f5ebdeb8fb263eff5372ca4c6a2f50d1", "archived": false, "category_id": 184, "ancestry_path": "/184/", "selectable": true, "team": { "id": 80, "name": "Kentucky cats", "created_at": "2025-06-02T16:24:58.000+09:00", "updated_at": "2025-06-02T17:24:58.000+09:00", "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": 110, "tasks_readonly": false } }, "comment": null, "team": { "id": 80, "name": "Kentucky cats", "created_at": "2025-06-02T16:24:58.000+09:00", "updated_at": "2025-06-02T17:24:58.000+09:00", "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": 110, "tasks_readonly": false }, "category": { "id": 184, "key": "key65", "title": "key65", "url": null, "team_id": 80, "created_at": "2025-06-02T16:24:58.000+09:00", "updated_at": "2025-06-02T17:24:58.000+09:00", "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": "1add6a70aef48da2cbdf222441b54815", "archived": false, "category_id": null, "ancestry_path": "/", "selectable": true } }