※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。
PATCH /api/v1/time_entries/:id
Update a time entry
Supported Formats
jsonExamples
PATCH /api/v1/time_entries/16
{
"time_entry": {
"started_at": "1760926050",
"time_trackable_id": "939"
}
}
200
{
"started_at": "2025-10-20T11:07:30.000+09:00",
"time_trackable_id": 939,
"team_id": 435,
"time_tracker_id": 414,
"time_tracker_type": "User",
"input_type": "realtime",
"stopped_at": "2025-10-21T12:07:30.000+09:00",
"deleted_at": null,
"stopped_at_seconds": 1761016050,
"deleted_at_seconds": 0,
"duration": 90000.0,
"amount": 0,
"id": 16,
"time_trackable_type": "Task",
"created_at": "2025-10-21T11:07:30.000+09:00",
"updated_at": "2025-10-21T11:07:31.000+09:00",
"external_identifier": null,
"external_provider": "none",
"formatted_duration": "25:00",
"html_url": "http://test.host/app/mytasks/939/edit",
"user": {
"id": 414,
"nickname": "Scott Buckridge",
"image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
"created_at": "2025-10-21T11:07:30.000+09:00",
"updated_at": "2025-10-21T11:07:31.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-10-21T11:07:30.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=64"
},
"task": {
"state": "open",
"category_id": 938,
"updated_at": "2025-10-21T11:07:31.000+09:00",
"id": 939,
"key": "http://cummings.example/lilla_okuneva",
"title": "Similique ipsum occaecati quaerat.",
"url": "http://cummings.example/lilla_okuneva",
"team_id": 435,
"created_at": "2025-10-21T11:07:31.000+09:00",
"deleted_at": null,
"description": null,
"category": {
"id": 938,
"key": "key64",
"title": "key64",
"url": null,
"team_id": 435,
"created_at": "2025-10-21T11:07:31.000+09:00",
"updated_at": "2025-10-21T11:07:31.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": "938",
"ancestry_depth": 1,
"closed_at": null,
"color": 1,
"position": null,
"deleted_at_seconds": 0,
"key_md5": "2db41145bf139ae0da7e3f87f1a3b87b",
"archived": false,
"ancestry_path": "/938/",
"selectable": true,
"team": {
"id": 435,
"name": "New Jersey frogs",
"created_at": "2025-10-21T11:07:30.000+09:00",
"updated_at": "2025-10-21T11:07:31.000+09:00",
"deleted_at": null,
"time_limit": 0,
"avatar": null,
"ancestry": null,
"hierarchized": false,
"default_duration": 15,
"tasks_readonly_role": "none",
"workspaces_workspace_id": 558,
"tasks_readonly": false,
"rounding": "floor",
"capacity": null,
"premium": false,
"personal": false
}
},
"comment": null,
"team": {
"id": 435,
"name": "New Jersey frogs",
"created_at": "2025-10-21T11:07:30.000+09:00",
"updated_at": "2025-10-21T11:07:31.000+09:00",
"deleted_at": null,
"time_limit": 0,
"avatar": null,
"ancestry": null,
"hierarchized": false,
"default_duration": 15,
"tasks_readonly_role": "none",
"workspaces_workspace_id": 558,
"tasks_readonly": false,
"rounding": "floor",
"capacity": null,
"premium": false,
"personal": false
},
"category": {
"id": 938,
"key": "key64",
"title": "key64",
"url": null,
"team_id": 435,
"created_at": "2025-10-21T11:07:31.000+09:00",
"updated_at": "2025-10-21T11:07:31.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
},
"is_new_task": null
}
PATCH /api/v1/time_entries/17
{}
200
{
"id": 17,
"started_at": "2025-10-21T11:07:31.000+09:00",
"stopped_at": "2025-10-21T12:07:31.000+09:00",
"time_trackable_id": 942,
"time_trackable_type": "Task",
"time_tracker_id": 415,
"time_tracker_type": "User",
"created_at": "2025-10-21T11:07:31.000+09:00",
"updated_at": "2025-10-21T12:07:31.000+09:00",
"deleted_at": null,
"duration": 3600.0,
"amount": 0,
"team_id": 436,
"input_type": "realtime",
"stopped_at_seconds": 1761016051,
"deleted_at_seconds": 0,
"external_identifier": null,
"external_provider": "none",
"formatted_duration": "01:00",
"html_url": "http://test.host/app/mytasks/942/edit",
"user": {
"id": 415,
"nickname": "Wes Haley",
"image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
"created_at": "2025-10-21T11:07:31.000+09:00",
"updated_at": "2025-10-21T12:07:31.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-10-21T11:07:31.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=64"
},
"task": {
"id": 942,
"key": "http://feil.example/gwenda",
"title": "Ut nulla voluptas consequatur.",
"url": "http://feil.example/gwenda",
"team_id": 436,
"created_at": "2025-10-21T11:07:31.000+09:00",
"updated_at": "2025-10-21T12:07:31.000+09:00",
"deleted_at": null,
"description": null,
"category": {
"id": 941,
"key": "key65",
"title": "key65",
"url": null,
"team_id": 436,
"created_at": "2025-10-21T11:07:31.000+09:00",
"updated_at": "2025-10-21T12:07:31.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": "941",
"ancestry_depth": 1,
"closed_at": null,
"color": 1,
"position": null,
"deleted_at_seconds": 0,
"key_md5": "9334f3bb94776d0054ad10c69cd72f0a",
"archived": false,
"category_id": 941,
"ancestry_path": "/941/",
"selectable": true,
"team": {
"id": 436,
"name": "Louisiana bears",
"created_at": "2025-10-21T11:07:31.000+09:00",
"updated_at": "2025-10-21T12:07:31.000+09:00",
"deleted_at": null,
"time_limit": 0,
"avatar": null,
"ancestry": null,
"hierarchized": false,
"default_duration": 15,
"tasks_readonly_role": "none",
"workspaces_workspace_id": 559,
"tasks_readonly": false,
"rounding": "floor",
"capacity": null,
"premium": false,
"personal": false
}
},
"comment": null,
"team": {
"id": 436,
"name": "Louisiana bears",
"created_at": "2025-10-21T11:07:31.000+09:00",
"updated_at": "2025-10-21T12:07:31.000+09:00",
"deleted_at": null,
"time_limit": 0,
"avatar": null,
"ancestry": null,
"hierarchized": false,
"default_duration": 15,
"tasks_readonly_role": "none",
"workspaces_workspace_id": 559,
"tasks_readonly": false,
"rounding": "floor",
"capacity": null,
"premium": false,
"personal": false
},
"category": {
"id": 941,
"key": "key65",
"title": "key65",
"url": null,
"team_id": 436,
"created_at": "2025-10-21T11:07:31.000+09:00",
"updated_at": "2025-10-21T12:07:31.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
},
"is_new_task": null
}