※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。
PATCH /api/v1/teams/:team_id/tasks/:id/trash
Trash a task
Supported Formats
jsonExamples
PATCH /api/v1/teams/413/tasks/909/trash {} 200 { "id": 909, "key": "http://hilpert.test/kendrick.stroman", "title": "Corrupti dolorum accusamus optio.", "url": "http://hilpert.test/kendrick.stroman", "team_id": 413, "created_at": "2025-08-13T09:05:32.000+09:00", "updated_at": "2025-08-13T09:05:32.000+09:00", "deleted_at": "2025-08-13T09:05:32.000+09:00", "description": null, "category": { "id": 908, "key": "key27", "title": "key27", "url": null, "team_id": 413, "created_at": "2025-08-13T09:05:32.000+09:00", "updated_at": "2025-08-13T09:05:32.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": 3, "deleted_at_seconds": 0, "key_md5": "d95fea7859a1ae9ed4d824a3660470a6", "archived": false, "category_id": null, "ancestry_path": "/", "selectable": true, "ancestor_titles": [] }, "sequential_id": null, "state": "open", "bill": 0, "ancestry": "908", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": null, "deleted_at_seconds": 1755043532, "key_md5": "aa08790d1cc2ea2baddd29adec5355a9", "archived": false, "category_id": 908, "ancestry_path": "/908/", "selectable": true, "team": { "id": 413, "name": "Vermont vixens", "created_at": "2025-08-13T09:05:32.000+09:00", "updated_at": "2025-08-13T09:05:32.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": 431, "tasks_readonly": false, "rounding": "floor", "capacity": null, "premium": false, "personal": false, "avatar_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAEAIAAAB1mzrKAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0T///////8JWPfcAAAITElE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vB7ob2OtRYffKtOVLVCniIVH5YekbfefbVArKnUPsW7n7fkwg0kTLp24H+0fYg61m/DCgMAxGeYuDPCykBxX0mbfolpK3nn47BZarsLQfIk6ii/DYsMmJocXz1mH33J/QtXGUwDfulcKffnvH3gE7DLnzMlSy54EPYtPNStZtPAuxgWGQAgT2YBzS3+gUwq3wA+kdUWZWg6YFkOwE6wC4s6sqVhnQH9B20Gqy5o9I/4oYngBZ+qXVoL+FvmWHlQswmmZM+KFwbrDAg+Ftgc8JG/CgFeogNZFHk6BaH88d2aQNZ83dxkH3l2HgtgnQEA8rMzkFCuM659cf2vEj7mnxeI7tY43rW8jKkWzgbbA6+jjoYMlhrgOTW4wf3IHbEHv70VpjFKNw49tA92ld53GZmDpQYAcPKJKWTg9Zwa2jDwyIR/dPcIhjqCyLDaAOdRaw2mCqtDp0N7qH+LudeJmIDVBsw94CuZMd1SEa/dvEBFD+ZO4MgTdd2pwmoDAFRWyIDe9BuP92jAkSfqWlPlHjBg4LKz1bF+luetnN5BrrTHPLMzeu4BA8BWHfGbHqG5CaaZ2Di6b9g81jZ8YvA66vp+N+4BAwDEZ1hOZwM4VLn7amxeJ2ICbvz/hqLlnnkC/leJG4CYuAGIiRuAmLgBiIkbgJi4AYj5L4sSZPpNUsMEAAAAAElFTkSuQmCC" }, "can_trash": true }
PATCH /api/v1/teams/414/tasks/913/trash {} 200 { "id": 913, "key": "http://hane.test/erasmo", "title": "Animi a exercitationem rerum.", "url": "http://hane.test/erasmo", "team_id": 414, "created_at": "2025-08-13T09:05:32.000+09:00", "updated_at": "2025-08-13T09:05:32.000+09:00", "deleted_at": "2025-08-13T09:05:32.000+09:00", "description": null, "category": { "id": 912, "key": "key29", "title": "key29", "url": null, "team_id": 414, "created_at": "2025-08-13T09:05:32.000+09:00", "updated_at": "2025-08-13T09:05:32.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": 3, "deleted_at_seconds": 0, "key_md5": "49461610124c060be9b596dbe92c33d6", "archived": false, "category_id": null, "ancestry_path": "/", "selectable": true, "ancestor_titles": [] }, "sequential_id": null, "state": "open", "bill": 0, "ancestry": "912", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": null, "deleted_at_seconds": 1755043532, "key_md5": "1c9b9362576eaf8e4a33b3bbdb0d003a", "archived": false, "category_id": 912, "ancestry_path": "/912/", "selectable": true, "team": { "id": 414, "name": "Illinois werewolves", "created_at": "2025-08-13T09:05:32.000+09:00", "updated_at": "2025-08-13T09:05:32.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": 432, "tasks_readonly": false, "rounding": "floor", "capacity": null, "premium": false, "personal": false, "avatar_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAEAAAAADfkvJBAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0T//xSrMc0AAABsSURBVGje7dmhDYBADAXQHmEBEgaAARgQxyQn2QYBozAAQd0CZ2pe1TdtX1LZUmuk1pC7HgAAIGLsbVzm6Wr5Pr89AbAeLT9bvL1z0k8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAULztAAAAsgE/A6gJwdnHQ4EAAAAASUVORK5CYII=" }, "can_trash": true }