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

# Add Slot

> Add a transmission slot to the MCR schedule.



## OpenAPI

````yaml /openapi/inventory.yaml post /api/v1/scheduler
openapi: 3.1.0
info:
  title: Cape Digi - Inventory Service
  description: >-
    Ad inventory catalog, rate cards, booking orders, campaign tracking, ad
    asset management, and commercial transmission scheduling.
  version: 1.0.0
servers:
  - url: https://api.capedigital.co.ke/inventory
    description: Production
  - url: http://localhost:8000
    description: Local
security: []
paths:
  /api/v1/scheduler:
    post:
      tags:
        - Scheduler
      summary: Add Slot
      description: Add a transmission slot to the MCR schedule.
      operationId: add_slot_api_v1_scheduler_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TransmissionSlotCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    TransmissionSlotCreate:
      properties:
        scheduled_date:
          type: string
          format: date
          title: Scheduled Date
        time_slot:
          type: string
          title: Time Slot
        booking_order_id:
          type: string
          format: uuid
          title: Booking Order Id
        ad_asset_id:
          type: string
          format: uuid
          title: Ad Asset Id
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
      type: object
      required:
        - scheduled_date
        - time_slot
        - booking_order_id
        - ad_asset_id
      title: TransmissionSlotCreate
    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

````