※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。
PATCH /api/v1/time_entries/:id/stop
Stop a time entry
サポートフォーマット
json例
PATCH /api/v1/time_entries/2098/stop 200 { "stopped_at": "2024-04-17T23:31:19.000Z", "team_id": 3072, "id": 2098, "started_at": "2024-04-17T23:31:19.000Z", "input_type": "realtime", "deleted_at": null, "stopped_at_seconds": 1713396679, "deleted_at_seconds": 0, "duration": 0.0, "amount": 0, "time_trackable_id": 7602, "time_trackable_type": "Task", "time_tracker_id": 3121, "time_tracker_type": "User", "created_at": "2024-04-17T23:31:19.000Z", "updated_at": "2024-04-17T23:31:19.000Z", "formatted_duration": "00:00", "html_url": "http://www.example.com/app/mytasks/7602/edit", "user": { "id": 3121, "nickname": "Jacqulyn Lemke", "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "created_at": "2024-04-17T23:31:19.000Z", "updated_at": "2024-04-17T23:31:19.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:19.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": { "state": "open", "updated_at": "2024-04-17T23:31:19.000Z", "id": 7602, "key": "Etfacilisreiciendisneque", "title": "Et facilis reiciendis neque.", "url": "", "team_id": 3072, "created_at": "2024-04-17T23:31:19.000Z", "deleted_at": null, "description": null, "category": { "id": 7601, "key": "key105", "title": "key105", "url": null, "team_id": 3072, "created_at": "2024-04-17T23:31:19.000Z", "updated_at": "2024-04-17T23:31:19.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": "dbef5eee9bea927216325e7d85af30f1", "archived": false }, "sequential_id": null, "bill": 0, "ancestry": "7601", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": null, "deleted_at_seconds": 0, "key_md5": "896bc461bd3fb9c0ebde7e71fe95be18", "archived": false, "team": { "id": 3072, "name": "Hawaii lycanthropes", "created_at": "2024-04-17T23:31:19.000Z", "updated_at": "2024-04-17T23:31:19.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": 3072, "name": "Hawaii lycanthropes", "created_at": "2024-04-17T23:31:19.000Z", "updated_at": "2024-04-17T23:31:19.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": 7601, "key": "key105", "title": "key105", "url": null, "team_id": 3072, "created_at": "2024-04-17T23:31:19.000Z", "updated_at": "2024-04-17T23:31:19.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": "dbef5eee9bea927216325e7d85af30f1", "archived": false } }
PATCH /api/v1/time_entries/2099/stop 403 { "messages": [ "You are not authorized to access this page." ] }