> ## Documentation Index
> Fetch the complete documentation index at: https://docs.seamind.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Course

> Create a new course.

Requires admin role.



## OpenAPI

````yaml /openapi.json post /api/v1/learn/courses
openapi: 3.1.0
info:
  title: Seamind Backend
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/learn/courses:
    post:
      tags:
        - learn-courses
      summary: Create Course
      description: |-
        Create a new course.

        Requires admin role.
      operationId: create_course_api_v1_learn_courses_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CourseCreateDTO'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CourseDTO'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    CourseCreateDTO:
      properties:
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        s3_path:
          type: string
          title: S3 Path
        launch_file:
          type: string
          title: Launch File
        image_path:
          type: string
          title: Image Path
          default: course-images/default.webp
        title:
          type: string
          title: Title
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
      type: object
      required:
        - organization_id
        - s3_path
        - launch_file
        - title
      title: CourseCreateDTO
      description: |-
        Data required to create a course.
        Used as input to repository create methods.
    CourseDTO:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        s3_path:
          type: string
          title: S3 Path
        launch_file:
          type: string
          title: Launch File
        image_path:
          type: string
          title: Image Path
          default: course-images/default.webp
        title:
          type: string
          title: Title
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - organization_id
        - s3_path
        - launch_file
        - title
        - created_at
        - updated_at
      title: CourseDTO
      description: |-
        Course data transfer object - returned from repositories.
        Represents a course as stored in the database.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````