※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。
POST /api/v1/time_entries
Create a time entry
Supported Formats
jsonExamples
POST /api/v1/time_entries { "task": { "key": "http://wyman.test/liberty", "parent_id": "36543", "team_id": "11609", "title": "Voluptates veritatis porro commodi.", "url": "http://wyman.test/liberty" } } 200 { "id": 6131, "started_at": "2024-12-17T00:27:08.000Z", "stopped_at": null, "time_trackable_id": 36544, "time_trackable_type": "Task", "time_tracker_id": 14381, "time_tracker_type": "User", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.000Z", "deleted_at": null, "duration": 0.428392839, "amount": 0, "team_id": 11609, "input_type": "realtime", "stopped_at_seconds": 0, "deleted_at_seconds": 0, "formatted_duration": "00:00", "html_url": "http://test.host/app/mytasks/36544/edit", "user": { "id": 14381, "nickname": "Dwight Mayer", "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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-12-17T00:27:08.000Z", "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": "2024-12-17T00:27:08.000Z", "id": 36544, "key": "http://wyman.test/liberty", "title": "Voluptates veritatis porro commodi.", "url": "http://wyman.test/liberty", "team_id": 11609, "created_at": "2024-12-17T00:27:08.000Z", "deleted_at": null, "description": null, "category": { "id": 36543, "key": "key49", "title": "key49", "url": null, "team_id": 11609, "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 3, "deleted_at_seconds": 0, "key_md5": "9254884dee5a10d616af3a660054b834", "archived": false }, "sequential_id": null, "bill": 0, "ancestry": "36543", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": null, "deleted_at_seconds": 0, "key_md5": "b08624ad2f162387f114fb798ca7884f", "archived": false, "team": { "id": 11609, "name": "Texas dragons", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 12421, "tasks_readonly": false } }, "comment": null, "team": { "id": 11609, "name": "Texas dragons", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 12421, "tasks_readonly": false }, "category": { "id": 36543, "key": "key49", "title": "key49", "url": null, "team_id": 11609, "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 3, "deleted_at_seconds": 0, "key_md5": "9254884dee5a10d616af3a660054b834", "archived": false } }
POST /api/v1/time_entries { "parent": { "key": "key52", "title": "key52", "url": "https://example.com" }, "task": { "key": "http://marvin-mraz.example/carson.bahringer", "parent_id": "36546", "team_id": "11610", "title": "Dicta sit alias libero.", "url": "http://marvin-mraz.example/carson.bahringer" } } 200 { "id": 6132, "started_at": "2024-12-17T00:27:08.000Z", "stopped_at": null, "time_trackable_id": 36549, "time_trackable_type": "Task", "time_tracker_id": 14382, "time_tracker_type": "User", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.000Z", "deleted_at": null, "duration": 0.561577256, "amount": 0, "team_id": 11610, "input_type": "realtime", "stopped_at_seconds": 0, "deleted_at_seconds": 0, "formatted_duration": "00:00", "html_url": "http://test.host/app/mytasks/36549/edit", "user": { "id": 14382, "nickname": "Nikki Feeney", "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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-12-17T00:27:08.000Z", "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": "2024-12-17T00:27:08.000Z", "id": 36549, "key": "http://marvin-mraz.example/carson.bahringer", "title": "Dicta sit alias libero.", "url": "http://marvin-mraz.example/carson.bahringer", "team_id": 11610, "created_at": "2024-12-17T00:27:08.000Z", "deleted_at": null, "description": null, "category": { "id": 36546, "key": "key50", "title": "key50", "url": null, "team_id": 11610, "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": "5a8e00b1cd2930e44ed84b8bbbf44f7a", "archived": false }, "sequential_id": null, "bill": 0, "ancestry": "36546", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": null, "deleted_at_seconds": 0, "key_md5": "770693dce115db9000ebf65a8277ee16", "archived": false, "team": { "id": 11610, "name": "Wyoming sorcerors", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 12422, "tasks_readonly": false } }, "comment": null, "team": { "id": 11610, "name": "Wyoming sorcerors", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 12422, "tasks_readonly": false }, "category": { "id": 36546, "key": "key50", "title": "key50", "url": null, "team_id": 11610, "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": "5a8e00b1cd2930e44ed84b8bbbf44f7a", "archived": false } }
POST /api/v1/time_entries { "parent": { "key": "key55", "title": "key55", "url": "https://example.com" }, "task": { "key": "http://gislason.example/arden", "parent_id": "36551", "team_id": "11611", "title": "Enim ut at accusantium.", "url": "https://www.chatwork.com/#!rid123456-123456789012345678" } } 200 { "id": 6133, "started_at": "2024-12-17T00:27:08.000Z", "stopped_at": null, "time_trackable_id": 36555, "time_trackable_type": "Task", "time_tracker_id": 14383, "time_tracker_type": "User", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.000Z", "deleted_at": null, "duration": 0.709108131, "amount": 0, "team_id": 11611, "input_type": "realtime", "stopped_at_seconds": 0, "deleted_at_seconds": 0, "formatted_duration": "00:00", "html_url": "http://test.host/app/mytasks/36555/edit", "user": { "id": 14383, "nickname": "Alayna Marks", "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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-12-17T00:27:08.000Z", "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": "2024-12-17T00:27:08.000Z", "id": 36555, "key": "https://www.chatwork.com/#!rid123456-123456789012345678", "title": "Enim ut at accusantium.", "url": "https://www.chatwork.com/#!rid123456-123456789012345678", "team_id": 11611, "created_at": "2024-12-17T00:27:08.000Z", "deleted_at": null, "description": null, "category": { "id": 36554, "key": "https://example.com", "title": "key55", "url": null, "team_id": 11611, "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 4, "deleted_at_seconds": 0, "key_md5": "c984d06aafbecf6bc55569f964148ea3", "archived": false }, "sequential_id": null, "bill": 0, "ancestry": "36554", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": null, "deleted_at_seconds": 0, "key_md5": "4596a21023f5981ae2c5d023c42466f7", "archived": false, "team": { "id": 11611, "name": "Kansas elephants", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 12423, "tasks_readonly": false } }, "comment": null, "team": { "id": 11611, "name": "Kansas elephants", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 12423, "tasks_readonly": false }, "category": { "id": 36554, "key": "https://example.com", "title": "key55", "url": null, "team_id": 11611, "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 4, "deleted_at_seconds": 0, "key_md5": "c984d06aafbecf6bc55569f964148ea3", "archived": false } }
POST /api/v1/time_entries { "parent": { "key": "key58", "title": "key58", "url": "https://example.com" }, "task": { "key": "http://ferry-jenkins.example/ardelle", "parent_id": "36557", "team_id": "11612", "title": "Est aperiam molestias voluptatem.", "url": "https://kcw.kddi.ne.jp/#!rid123456-123456789012345678" } } 200 { "id": 6134, "started_at": "2024-12-17T00:27:08.000Z", "stopped_at": null, "time_trackable_id": 36561, "time_trackable_type": "Task", "time_tracker_id": 14384, "time_tracker_type": "User", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.000Z", "deleted_at": null, "duration": 0.838340131, "amount": 0, "team_id": 11612, "input_type": "realtime", "stopped_at_seconds": 0, "deleted_at_seconds": 0, "formatted_duration": "00:00", "html_url": "http://test.host/app/mytasks/36561/edit", "user": { "id": 14384, "nickname": "Magnolia Kohler Jr.", "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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-12-17T00:27:08.000Z", "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": "2024-12-17T00:27:08.000Z", "id": 36561, "key": "https://kcw.kddi.ne.jp/#!rid123456-123456789012345678", "title": "Est aperiam molestias voluptatem.", "url": "https://kcw.kddi.ne.jp/#!rid123456-123456789012345678", "team_id": 11612, "created_at": "2024-12-17T00:27:08.000Z", "deleted_at": null, "description": null, "category": { "id": 36560, "key": "https://example.com", "title": "key58", "url": null, "team_id": 11612, "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 4, "deleted_at_seconds": 0, "key_md5": "c984d06aafbecf6bc55569f964148ea3", "archived": false }, "sequential_id": null, "bill": 0, "ancestry": "36560", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": null, "deleted_at_seconds": 0, "key_md5": "e77522b6b66d893e2e207478ae663f1b", "archived": false, "team": { "id": 11612, "name": "Iowa oxen", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 12424, "tasks_readonly": false } }, "comment": null, "team": { "id": 11612, "name": "Iowa oxen", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 12424, "tasks_readonly": false }, "category": { "id": 36560, "key": "https://example.com", "title": "key58", "url": null, "team_id": 11612, "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 4, "deleted_at_seconds": 0, "key_md5": "c984d06aafbecf6bc55569f964148ea3", "archived": false } }
POST /api/v1/time_entries { "time_entry": { "started_at": "1734308828", "stopped_at": "1734391628", "time_trackable_id": "36564" } } 200 { "id": 6135, "started_at": "2024-12-16T00:27:08.000Z", "stopped_at": "2024-12-16T23:27:08.000Z", "time_trackable_id": 36564, "time_trackable_type": "Task", "time_tracker_id": 14385, "time_tracker_type": "User", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.000Z", "deleted_at": null, "duration": 82800.0, "amount": 0, "team_id": 11613, "input_type": "realtime", "stopped_at_seconds": 1734391628, "deleted_at_seconds": 0, "formatted_duration": "23:00", "html_url": "http://test.host/app/mytasks/36564/edit", "user": { "id": 14385, "nickname": "Collen Reilly PhD", "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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-12-17T00:27:08.000Z", "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": "2024-12-17T00:27:08.000Z", "id": 36564, "key": "http://vonrueden.example/avril", "title": "Et nostrum voluptate consectetur.", "url": "http://vonrueden.example/avril", "team_id": 11613, "created_at": "2024-12-17T00:27:08.000Z", "deleted_at": null, "description": null, "category": { "id": 36563, "key": "key59", "title": "key59", "url": null, "team_id": 11613, "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": "abaa7d430409339e96b89987e883ed1b", "archived": false }, "sequential_id": null, "bill": 0, "ancestry": "36563", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": null, "deleted_at_seconds": 0, "key_md5": "1662ba8163ac186537e485243dd98c53", "archived": false, "team": { "id": 11613, "name": "Texas giants", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 12425, "tasks_readonly": false } }, "comment": null, "team": { "id": 11613, "name": "Texas giants", "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": 12425, "tasks_readonly": false }, "category": { "id": 36563, "key": "key59", "title": "key59", "url": null, "team_id": 11613, "created_at": "2024-12-17T00:27:08.000Z", "updated_at": "2024-12-17T00:27:08.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": "abaa7d430409339e96b89987e883ed1b", "archived": false } }
POST /api/v1/time_entries { "task": { "key": "http://friesen.example/renato", "team_id": "11614", "title": "Nam non debitis dolor.", "url": "http://friesen.example/renato" } } 422 { "messages": [ "選択中のチームでタスクの作成・編集・削除は許可されていません" ] }
POST /api/v1/time_entries { "task": { "key": "http://dickens.test/tabetha_conn", "parent_id": "36567", "team_id": "11615", "title": "Est facilis asperiores nostrum.", "url": "http://dickens.test/tabetha_conn" } } 422 { "messages": [ "1 error prohibited this Task from being saved. ", "Category is already deleted." ] }