※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。
POST /api/v1/time_entries/:id/comments
Create a comment
Supported Formats
jsonExamples
POST /api/v1/time_entries/6138/comments { "comment": { "content": "Comment😊" } } 200 { "id": 6138, "started_at": "2024-12-17T00:27:09.000Z", "stopped_at": "2024-12-17T01:27:09.000Z", "time_trackable_id": 36578, "time_trackable_type": "Task", "time_tracker_id": 14390, "time_tracker_type": "User", "created_at": "2024-12-17T00:27:09.000Z", "updated_at": "2024-12-17T00:27:09.000Z", "deleted_at": null, "duration": 3600.0, "amount": 0, "team_id": 11618, "input_type": "realtime", "stopped_at_seconds": 1734398829, "deleted_at_seconds": 0, "formatted_duration": "01:00", "html_url": "http://test.host/app/mytasks/36578/edit", "user": { "id": 14390, "nickname": "Theron MacGyver Esq.", "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "created_at": "2024-12-17T00:27:09.000Z", "updated_at": "2024-12-17T00:27:09.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:09.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:09.000Z", "id": 36578, "key": "http://waters.example/ian_predovic", "title": "Tempora est rem sed.", "url": "http://waters.example/ian_predovic", "team_id": 11618, "created_at": "2024-12-17T00:27:09.000Z", "deleted_at": null, "description": null, "category": { "id": 36577, "key": "key66", "title": "key66", "url": null, "team_id": 11618, "created_at": "2024-12-17T00:27:09.000Z", "updated_at": "2024-12-17T00:27:09.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": "cacdcd15544512fd8e50f2417c5f33aa", "archived": false }, "sequential_id": null, "bill": 0, "ancestry": "36577", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": null, "deleted_at_seconds": 0, "key_md5": "7f3438c1c52a95968531c7ee1d2e2136", "archived": false, "team": { "id": 11618, "name": "Maine cattle", "created_at": "2024-12-17T00:27:09.000Z", "updated_at": "2024-12-17T00:27:09.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": 12430, "tasks_readonly": false } }, "comment": { "id": 619, "content": "Comment😊", "commentable_id": 6138, "commentable_type": "ActsAsTimeTrackable::ActiveRecordStores::TimeEntry", "user_id": 14390, "created_at": "2024-12-17T00:27:09.000Z", "updated_at": "2024-12-17T00:27:09.000Z", "deleted_at": null }, "team": { "id": 11618, "name": "Maine cattle", "created_at": "2024-12-17T00:27:09.000Z", "updated_at": "2024-12-17T00:27:09.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": 12430, "tasks_readonly": false }, "category": { "id": 36577, "key": "key66", "title": "key66", "url": null, "team_id": 11618, "created_at": "2024-12-17T00:27:09.000Z", "updated_at": "2024-12-17T00:27:09.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": "cacdcd15544512fd8e50f2417c5f33aa", "archived": false } }
POST /api/v1/time_entries/6139/comments { "comment": { "content": "Comment_2" } } 200 { "id": 6139, "started_at": "2024-12-17T00:27:09.000Z", "stopped_at": "2024-12-17T01:27:09.000Z", "time_trackable_id": 36581, "time_trackable_type": "Task", "time_tracker_id": 14391, "time_tracker_type": "User", "created_at": "2024-12-17T00:27:09.000Z", "updated_at": "2024-12-17T00:27:09.000Z", "deleted_at": null, "duration": 3600.0, "amount": 0, "team_id": 11619, "input_type": "realtime", "stopped_at_seconds": 1734398829, "deleted_at_seconds": 0, "formatted_duration": "01:00", "html_url": "http://test.host/app/mytasks/36581/edit", "user": { "id": 14391, "nickname": "Ali Schiller", "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "created_at": "2024-12-17T00:27:09.000Z", "updated_at": "2024-12-17T00:27:09.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:09.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:09.000Z", "id": 36581, "key": "http://bode.test/delsie", "title": "Ea autem iure doloribus.", "url": "http://bode.test/delsie", "team_id": 11619, "created_at": "2024-12-17T00:27:09.000Z", "deleted_at": null, "description": null, "category": { "id": 36580, "key": "key67", "title": "key67", "url": null, "team_id": 11619, "created_at": "2024-12-17T00:27:09.000Z", "updated_at": "2024-12-17T00:27:09.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": "2b5103582df79747d3978ada467a799e", "archived": false }, "sequential_id": null, "bill": 0, "ancestry": "36580", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": null, "deleted_at_seconds": 0, "key_md5": "6ef986662d5af7dd0090340cf27e52ae", "archived": false, "team": { "id": 11619, "name": "Alaska tigers", "created_at": "2024-12-17T00:27:09.000Z", "updated_at": "2024-12-17T00:27:09.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": 12431, "tasks_readonly": false } }, "comment": { "id": 620, "content": "Comment_2", "commentable_id": 6139, "commentable_type": "ActsAsTimeTrackable::ActiveRecordStores::TimeEntry", "user_id": 14391, "created_at": "2024-12-17T00:27:09.000Z", "updated_at": "2024-12-17T00:27:09.000Z", "deleted_at": null }, "team": { "id": 11619, "name": "Alaska tigers", "created_at": "2024-12-17T00:27:09.000Z", "updated_at": "2024-12-17T00:27:09.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": 12431, "tasks_readonly": false }, "category": { "id": 36580, "key": "key67", "title": "key67", "url": null, "team_id": 11619, "created_at": "2024-12-17T00:27:09.000Z", "updated_at": "2024-12-17T00:27:09.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": "2b5103582df79747d3978ada467a799e", "archived": false } }