# Create a lesson type

> Needs a `catalog:write` token. A second trial lesson type, or one past the plan's allowance, answers 409.

```json
{
  "/api/v1/lesson-types": {
    "post": {
      "operationId": "createLessonType",
      "tags": [
        "Lesson types"
      ],
      "summary": "Create a lesson type",
      "description": "Needs a `catalog:write` token. A second trial lesson type, or one past the plan's allowance, answers 409.",
      "security": [
        {
          "bearerAuth": []
        }
      ],
      "requestBody": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/LessonTypeCreate"
            }
          }
        }
      },
      "responses": {
        "201": {
          "description": "Created.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LessonType"
              }
            }
          }
        },
        "400": {
          "description": "The body does not match the schema or fails validation.",
          "content": {
            "application/problem+json": {
              "schema": {
                "$ref": "#/components/schemas/Problem"
              }
            }
          }
        },
        "401": {
          "description": "Missing, unknown, revoked or expired token.",
          "content": {
            "application/problem+json": {
              "schema": {
                "$ref": "#/components/schemas/Problem"
              }
            }
          }
        },
        "403": {
          "description": "The token's scope does not allow this request.",
          "content": {
            "application/problem+json": {
              "schema": {
                "$ref": "#/components/schemas/Problem"
              }
            }
          }
        },
        "409": {
          "description": "A trial lesson type exists or the plan has no room left.",
          "content": {
            "application/problem+json": {
              "schema": {
                "$ref": "#/components/schemas/Problem"
              }
            }
          }
        }
      }
    }
  }
}
```
