---
updatedAt: 2026-02-04T17:17:16.000Z
agentTools:
  projectIndex: https://dev.helloasso.com/llms.txt
---

# Create category resource

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Plus Billetterie API",
    "version": "1.0.0",
    "description": "Authentication: send your API key in the Authorization header using the format `X-API-KEY YOUR_API_KEY`.\n\nEach API key is tied to a single organization. A key cannot manage multiple organizations.\n\nAPI keys can be generated from the organization dashboard (Developer tab)."
  },
  "tags": [
    {
      "name": "category resource",
      "description": "API endpoints for managing category resources",
      "x-tag-schema": {
        "$ref": "#/components/schemas/category"
      },
      "x-tag-schema-example": {
        "name": "string",
        "_id": "64b7f8b6f23a4a4f3d0a9b12",
        "_createdAt": "2024-01-01T00:00:00.000Z"
      }
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/v1/organizers/{organizerId}/events/{eventId}/categories": {
      "post": {
        "tags": [
          "category resource"
        ],
        "summary": "Create category resource",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/category"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "organizerId",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "string",
              "format": "objectId"
            },
            "example": "64b7f8b6f23a4a4f3d0a9b12"
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "string",
              "format": "objectId"
            },
            "example": "64b7f8b6f23a4a4f3d0a9b12"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/categoryCreate"
              },
              "example": {
                "name": "string",
                "description": "string"
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "category": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "string"
          },
          "media": {
            "nullable": true
          },
          "description": {
            "nullable": true,
            "type": "string",
            "example": "string"
          },
          "maxCount": {
            "nullable": true,
            "type": "number",
            "minimum": 0,
            "example": 0
          },
          "defaultLocale": {
            "nullable": true,
            "type": "string",
            "enum": [
              "fr",
              "en",
              "es"
            ],
            "example": "fr"
          },
          "localeDetails": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "nullable": true,
              "type": "object",
              "properties": {
                "name": {
                  "nullable": true,
                  "type": "string",
                  "minLength": 1,
                  "example": "x"
                },
                "description": {
                  "nullable": true,
                  "type": "string",
                  "minLength": 1,
                  "example": "x"
                }
              },
              "additionalProperties": false
            },
            "required": [
              "fr",
              "en",
              "es"
            ]
          },
          "_id": {
            "type": "string",
            "format": "objectId",
            "example": "64b7f8b6f23a4a4f3d0a9b12"
          },
          "_createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-01-01T00:00:00.000Z"
          },
          "_updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2024-01-01T00:00:00.000Z"
          },
          "_reference": {
            "type": "string",
            "nullable": true,
            "example": "string"
          }
        },
        "required": [
          "name",
          "_id",
          "_createdAt"
        ],
        "additionalProperties": false
      },
      "categoryCreate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "string"
          },
          "media": {
            "nullable": true
          },
          "description": {
            "nullable": true,
            "type": "string",
            "example": "string"
          },
          "maxCount": {
            "nullable": true,
            "type": "number",
            "minimum": 0,
            "example": 0
          },
          "defaultLocale": {
            "nullable": true,
            "type": "string",
            "enum": [
              "fr",
              "en",
              "es"
            ],
            "example": "fr"
          },
          "localeDetails": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "nullable": true,
              "type": "object",
              "properties": {
                "name": {
                  "nullable": true,
                  "type": "string",
                  "minLength": 1,
                  "example": "x"
                },
                "description": {
                  "nullable": true,
                  "type": "string",
                  "minLength": 1,
                  "example": "x"
                }
              },
              "additionalProperties": false
            },
            "required": [
              "fr",
              "en",
              "es"
            ]
          },
          "index": {
            "nullable": true,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "example": 0
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY",
        "description": "Use the format `X-API-KEY YOUR_API_KEY`. Each key is tied to a single organization."
      }
    }
  },
  "servers": [
    {
      "url": "https://api.plusbilletterie.helloasso.com"
    }
  ],
  "x-readme": {}
}
```