> ## 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.

# Create Inventory Item



## OpenAPI

````yaml /openapi/inventory.yaml post /api/v1/inventory
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/inventory:
    post:
      tags:
        - Inventory
      summary: Create Inventory Item
      operationId: create_inventory_item_api_v1_inventory_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InventoryItemCreate'
      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:
    InventoryItemCreate:
      properties:
        platform:
          $ref: '#/components/schemas/Platform'
        category:
          type: string
          title: Category
        name:
          type: string
          title: Name
        pricing_unit:
          $ref: '#/components/schemas/PricingUnit'
          default: PER_WEEK
        slot_start:
          anyOf:
            - type: string
              format: time
            - type: 'null'
          title: Slot Start
        slot_end:
          anyOf:
            - type: string
              format: time
            - type: 'null'
          title: Slot End
        rate_card_price:
          anyOf:
            - type: number
              minimum: 0
            - type: string
          title: Rate Card Price
        base_units:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Base Units
        unit_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Unit Label
        price_per_extra_unit:
          anyOf:
            - type: number
              minimum: 0
            - type: string
          title: Price Per Extra Unit
          default: '0.00'
        duration_seconds:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Duration Seconds
        weekly_capacity:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Weekly Capacity
        inclusions:
          anyOf:
            - type: string
            - type: 'null'
          title: Inclusions
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
      type: object
      required:
        - platform
        - category
        - name
        - rate_card_price
      title: InventoryItemCreate
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Platform:
      type: string
      enum:
        - TV
        - RADIO
        - DIGITAL
      title: Platform
    PricingUnit:
      type: string
      enum:
        - PER_WEEK
        - PER_INSERT
        - PER_DAY
        - PER_POST
        - PER_EVENT
      title: PricingUnit
    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

````