※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。
Teams::Categories
GET /api/v1/teams/:team_id/categories
>>>
Get team categories
Examples
GET /api/v1/teams/419/categories 200 [ { "id": 930, "title": "Uncategorized", "color": 1, "ancestry_depth": 0, "team_id": 419, "created_at": "2025-08-13T09:05:34.000+09:00", "updated_at": "2025-08-13T09:05:34.000+09:00", "ancestor_titles": [], "archived": false, "selectable": true, "is_leaf": true } ]
POST /api/v1/teams/:team_id/categories
>>>
Create a team category
Examples
POST /api/v1/teams/420/categories { "category": { "title": "Category A" } } 200 { "id": 932, "key": "Category A", "title": "Category A", "url": null, "team_id": 420, "created_at": "2025-08-13T09:05:35.000+09:00", "updated_at": "2025-08-13T09:05:35.000+09:00", "deleted_at": null, "description": null, "category": true, "state": "open", "bill": 0, "ancestry": null, "ancestry_path": "/", "ancestry_depth": 0, "closed_at": null, "color": 1, "position": 2, "parent_id": null, "archived": false, "selectable": true, "team": { "id": 420, "name": "Arizona horses", "created_at": "2025-08-13T09:05:34.000+09:00", "updated_at": "2025-08-13T09:05:35.000+09:00", "deleted_at": null, "time_limit": 0, "avatar_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAEAIAAAB1mzrKAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0T///////8JWPfcAAAIeUlEQVR42u2ce1BU1x3Hz93nvWR5SMiKD0AZBSKIoIQiD00gFKkapERYppqEQdGEqo3GOA0hSil1HGs7ujgpNRRT2pGXrMBY0QTQKIugKAXUldnY6JI2QUTltXff/eMyU9Ldc73I3j2XyX7+3N/3nnt+58s9555zzwH7/ntf3+xs4AQRPNQV+LHjNAAxTgMQ4zQAMU4DEOM0ADFOAxDjNAAxAtQVYAof98Ne2v8i+ZXp4AEgBRpQOjlqjOta86+VQ6dT7hQFo67p1JgxTwAhz6iL67RuegrB5bDGhW2C8wGz576LuqZTYwYY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Z2Pw998YBhUt/M0RdSrMEzDj1iglJ4XJUcSi/dNpWym2M0AvmLehy+6CG/EZr4cANOY3R48GPTVd17rUwdMpWx2IVtr7rZW0Gtw6pQyC9jNAIJ6VGk/c2uHa8vaNGDA4mPh0D9JYzIzoPbu8SIl2/AS+97dDgZQewvwbemDsXJ6JTlcW6bkxG6cyTCZGYB7uFq0SHzyjZGfSOx7dzsYQO0t4BXOOTMLuoJv6L/epL5iIu9bHhbYNwF7wWxmIKu395quHQzAKzMZDbxtnBh4YTCZGQhOL7u1cImgK9COK7vTW4yTYhqs1JjX03P/kbFIVfDtZphQt6/hcUcJaAAAdLDRfNOHmhmM/PSj7eUJfBBYMB+DKXnrXJOJMtAPmsCV6d/XQV/EnMDgxPb0HzNOAxDjNAAxTgMQ4zQAMU4DEOM0ADH/BeKcLZYmiGmhAAAAAElFTkSuQmCC", "ancestry": null, "html_url": "http://test.host/app/teams/420/edit", "descendants_names": [], "payment_required": false, "price_users_count": 1, "payable": true, "free_ends_at": "2025-08-27T09:05:34.929+09:00", "can_manage": true, "can_manage_employ": true, "rounding": "floor", "capacity": null, "premium": false, "personal": false } }
POST /api/v1/teams/421/categories { "category": { "title": "Category A" }, "parent_id": "934" } 200 { "id": 935, "key": "Category A", "title": "Category A", "url": null, "team_id": 421, "created_at": "2025-08-13T09:05:35.000+09:00", "updated_at": "2025-08-13T09:05:35.000+09:00", "deleted_at": null, "description": null, "category": true, "state": "open", "bill": 0, "ancestry": "934", "ancestry_path": "/934/", "ancestry_depth": 1, "closed_at": null, "color": 1, "position": 1, "parent_id": 934, "archived": false, "selectable": true, "team": { "id": 421, "name": "North Carolina vixens", "created_at": "2025-08-13T09:05:35.000+09:00", "updated_at": "2025-08-13T09:05:35.000+09:00", "deleted_at": null, "time_limit": 0, "avatar_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAEAIAAAB1mzrKAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6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CKBT+P/Iqb2v7e9ZK1bBreYkRCSA3qx4Q+fij026le2DX8hIjEkBBfNRQ99RabXXTtd4Sdi0IYoQCKPDii7vLe8ndz58NNsCtxEgFkDZ4kTIFtzsXXHYGbiVGKoBCvfK+U8sHut9WMzRGLYBCsSLT7udesm1wseIR+G9HmX9bCRdmBkCGEQAZRgBkGAGQYQRAhhEAGUYAZBgBkPkHvih0hyPkd8IAAAAASUVORK5CYII=", "ancestry": null, "html_url": "http://test.host/app/teams/421/edit", "descendants_names": [], "payment_required": false, "price_users_count": 1, "payable": true, "free_ends_at": "2025-08-27T09:05:35.201+09:00", "can_manage": true, "can_manage_employ": true, "rounding": "floor", "capacity": null, "premium": false, "personal": false } }
PATCH /api/v1/teams/:team_id/categories/:id
>>>
Update a team category
Examples
PATCH /api/v1/teams/422/categories/937 { "category": { "title": "Category A" } } 200 { "id": 937, "key": "CategoryA", "title": "Category A", "url": null, "team_id": 422, "created_at": "2025-08-13T09:05:35.000+09:00", "updated_at": "2025-08-13T09:05:35.000+09:00", "deleted_at": null, "description": null, "category": true, "state": "open", "bill": 0, "ancestry": null, "ancestry_path": "/", "ancestry_depth": 0, "closed_at": null, "color": 1, "position": 2, "parent_id": null, "archived": false, "selectable": true, "team": { "id": 422, "name": "Arizona nemesis", "created_at": "2025-08-13T09:05:35.000+09:00", "updated_at": "2025-08-13T09:05:35.000+09:00", "deleted_at": null, "time_limit": 0, "avatar_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAEAIAAAB1mzrKAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0T///////8JWPfcAAAIaklEQVR42u2cfVhT1x3H7w1JCIREAiYQ8sZbblBUkHaVPuCkzCoDLAiE9plDpTq7p9jOdvMZTvsUZ59iV7R2E9o+Wu1q3R6nkzfFqdsEChawwxdkUwgoCS8GQlBQXkIg++P4PKOL5xLk5p7L03z+v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8ZIM07gXAI4o+C8nlBsADgeBI4KwTTjmocrrJkdP/g7yS4HZ/P442X/GZIHIMjXqt3X1isLZlL3DEeM2uoCl6zkSTvAUSGY5s6dc3/rOjCht0RN7HFeYI7QsvSve/TN5BrYGQWqoNgA8u9cgNasUm9633xg9CfdinjgA16FYRrhVtWv+b/1v/zsHd8xZ/SBMgO8xAFZnl8FKJ63iP8D0wxVdkqG3zAe+de4+WVnBPN0tI4VTzsbOW9CpsyAx7dqHV6OQT9z6ypL+wy+tsM2wlbijGCeDkdWBsFBCQkB27jbve5x1lHbOgUGgL0FRGP6tBs9dFUlvYb51AYwexxZGbh183a7yYOTE5tl66ltnQIDwN4C8lOJvXjjTfOfBn9qWP5IQW0AVOHYyoD67b0UGODYxEt3ymGmOLIyEHst7vO+IiLUOULKMruzSsaBj+ymBTcv3f/SnNeCD+bBlO3+Ffe+e7KFaYCVQS2R9+l1D1EekSOExsKVC9I5JzEcw7C1s28Xd/3fULQwYnv69xmXAYhxGYAYlwGIcRmAGJcBiHEZgJj/At4FGuL1ryHtAAAAAElFTkSuQmCC", "ancestry": null, "html_url": "http://test.host/app/teams/422/edit", "descendants_names": [], "payment_required": false, "price_users_count": 1, "payable": true, "free_ends_at": "2025-08-27T09:05:35.507+09:00", "can_manage": true, "can_manage_employ": true, "rounding": "floor", "capacity": null, "premium": false, "personal": false } }