※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。
PATCH /api/v1/time_entries/:id/stop
Stop a time entry
Supported Formats
jsonExamples
PATCH /api/v1/time_entries/51/stop
200
{
"stopped_at": "2025-10-21T11:07:45.000+09:00",
"team_id": 462,
"time_trackable_id": 1012,
"time_trackable_type": "Task",
"time_tracker_id": 437,
"time_tracker_type": "User",
"started_at": "2025-10-21T11:07:45.000+09:00",
"input_type": "realtime",
"deleted_at": null,
"stopped_at_seconds": 1761012465,
"deleted_at_seconds": 0,
"duration": 0.0,
"amount": 0,
"id": 51,
"created_at": "2025-10-21T11:07:45.000+09:00",
"updated_at": "2025-10-21T11:07:45.000+09:00",
"external_identifier": null,
"external_provider": "none",
"formatted_duration": "00:00",
"html_url": "http://www.example.com/app/mytasks/1012/edit",
"user": {
"id": 437,
"nickname": "Bonny Bailey V",
"image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
"created_at": "2025-10-21T11:07:45.000+09:00",
"updated_at": "2025-10-21T11:07:45.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:45.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": 1011,
"updated_at": "2025-10-21T11:07:45.000+09:00",
"id": 1012,
"key": "Eosdelenitivoluptatemest",
"title": "Eos deleniti voluptatem est.",
"url": "",
"team_id": 462,
"created_at": "2025-10-21T11:07:45.000+09:00",
"deleted_at": null,
"description": null,
"category": {
"id": 1011,
"key": "key88",
"title": "key88",
"url": null,
"team_id": 462,
"created_at": "2025-10-21T11:07:45.000+09:00",
"updated_at": "2025-10-21T11:07:45.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": "3180155ad5bc74501315acac18382334",
"archived": false,
"category_id": null,
"ancestry_path": "/",
"selectable": true
},
"sequential_id": null,
"bill": 0,
"ancestry": "1011",
"ancestry_depth": 1,
"closed_at": null,
"color": 1,
"position": null,
"deleted_at_seconds": 0,
"key_md5": "68b46e52cc37979b1651e7984c97bbfa",
"archived": false,
"ancestry_path": "/1011/",
"selectable": true,
"team": {
"id": 462,
"name": "Massachusetts zombies",
"created_at": "2025-10-21T11:07:45.000+09:00",
"updated_at": "2025-10-21T11:07:45.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": 585,
"tasks_readonly": false,
"rounding": "floor",
"capacity": null,
"premium": false,
"personal": false
}
},
"comment": null,
"team": {
"id": 462,
"name": "Massachusetts zombies",
"created_at": "2025-10-21T11:07:45.000+09:00",
"updated_at": "2025-10-21T11:07:45.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": 585,
"tasks_readonly": false,
"rounding": "floor",
"capacity": null,
"premium": false,
"personal": false
},
"category": {
"id": 1011,
"key": "key88",
"title": "key88",
"url": null,
"team_id": 462,
"created_at": "2025-10-21T11:07:45.000+09:00",
"updated_at": "2025-10-21T11:07:45.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": "3180155ad5bc74501315acac18382334",
"archived": false,
"category_id": null,
"ancestry_path": "/",
"selectable": true
},
"is_new_task": null
}
PATCH /api/v1/time_entries/52/stop
403
{
"messages": [
"You are not authorized to access this page."
]
}