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

# Create Unavailable Event

> Creates an unavailable time slot for an artist



## OpenAPI

````yaml POST /unavailable-events/create-unavailable-event
openapi: 3.1.0
info:
  title: Tatu API
  description: API documentation for Tatu's booking and artist management system
  version: 1.0.0
servers:
  - url: http://localhost:3000/api
    description: Development server
security: []
paths:
  /unavailable-events/create-unavailable-event:
    post:
      summary: Create Unavailable Event
      description: Creates an unavailable time slot for an artist
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUnavailableEventRequest'
      responses:
        '200':
          description: Unavailable event created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  eventId:
                    type: string
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateUnavailableEventRequest:
      type: object
      required:
        - date
        - startTime
        - endTime
        - artistId
      properties:
        title:
          type: string
          description: Optional title for the unavailable event
        date:
          type: number
          description: Date timestamp
        startTime:
          type: number
          description: Start time timestamp
        endTime:
          type: number
          description: End time timestamp
        artistId:
          type: string
          description: ID of the artist
    Error:
      type: object
      required:
        - message
      properties:
        message:
          type: string

````