※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。
POST /api/v1/teams/:team_id/tasks/:id/start
Start a task
Supported Formats
jsonExamples
POST /api/v1/teams/1886/tasks/4735/start {} 200 { "id": 1348, "started_at": "2024-04-02T06:07:21.000Z", "stopped_at": null, "time_trackable_id": 4735, "time_trackable_type": "Task", "time_tracker_id": 1960, "time_tracker_type": "User", "created_at": "2024-04-02T06:07:21.000Z", "updated_at": "2024-04-02T06:07:21.000Z", "deleted_at": null, "duration": 0.219848179, "amount": 0, "team_id": 1886, "input_type": "realtime", "stopped_at_seconds": 0, "deleted_at_seconds": 0, "formatted_duration": "00:00", "html_url": "http://test.host/app/mytasks/4735/edit", "user": { "id": 1960, "nickname": "Vannessa Dibbert", "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50", "created_at": "2024-04-02T06:07:21.000Z", "updated_at": "2024-04-02T06:07:21.000Z", "deleted_at": null, "options": null, "avatar": null, "daily": true, "daily_time": "2000-01-01T08:00:00.000Z", "weekly": true, "time_zone": "UTC", "locale": "en", "profile": null, "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-02T06:07:21.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-02T06:07:21.000Z", "id": 4735, "key": "http://toy.test/laurie_stroman", "title": "In accusantium debitis hic.", "url": "http://toy.test/laurie_stroman", "team_id": 1886, "created_at": "2024-04-02T06:07:21.000Z", "deleted_at": null, "description": null, "category": { "id": 4734, "key": "key21", "title": "key21", "url": null, "team_id": 1886, "created_at": "2024-04-02T06:07:20.000Z", "updated_at": "2024-04-02T06:07:21.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": "0996e40ee99132f44ce2804944fa8647", "archived": false }, "sequential_id": null, "bill": 0, "ancestry": "4734", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": null, "deleted_at_seconds": 0, "key_md5": "95da466a25dbff6c376f9db40fa76699", "archived": false, "team": { "id": 1886, "name": "Ohio gooses", "created_at": "2024-04-02T06:07:20.000Z", "updated_at": "2024-04-02T06:07:21.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": 1886, "name": "Ohio gooses", "created_at": "2024-04-02T06:07:20.000Z", "updated_at": "2024-04-02T06:07:21.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": 4734, "key": "key21", "title": "key21", "url": null, "team_id": 1886, "created_at": "2024-04-02T06:07:20.000Z", "updated_at": "2024-04-02T06:07:21.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": "0996e40ee99132f44ce2804944fa8647", "archived": false } }
POST /api/v1/teams/1887/tasks/4739/start {} 422 { "messages": [ "1 error prohibited this Time entry from being saved. ", "Task is already deleted." ] }