※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。

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+VQ6dT7hQFo67p1JgxTwAhz6iL67RuegrB5bDGhW2C8wGz576LuqZTYwYYgCXwKngqPObNwBgZvZIozqiP60Rd36kxAwwQfZLwq1B33quzcXeSXom7pWWt9MWKhKkCBepaM2UGGEAUZ9TF3WCixL6YdU6yRnwpcfay71DXmimcNoC/RLrY/Rei7fFHlu5mfhVeLJtBHRGnDcBTN7rEjIFM/mHeXuuo5e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ewvwbemDsXJ6JTlcW6bkxG6cyTCZGYB7uFq0SHzyjZGfSOx7dzsYQO0t4BXOOTMLuoJv6L/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/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0T///////8JWPfcAAAGy0lEQVR42u2ce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XXTtd4Sdi0IYoQCKPDii7vLe8ndz58NNsCtxEgFkDZ4kTIFtzsXXHYGbiVGKoBCvfK+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
  }
}