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

# Edit Unavailable Event

> Updates an existing unavailable event. Only the artist who created the event can edit it.



## OpenAPI

````yaml PUT /unavailable-events/edit-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/edit-unavailable-event:
    put:
      summary: Edit Unavailable Event
      description: >-
        Updates an existing unavailable event. Only the artist who created the
        event can edit it.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditUnavailableEventRequest'
      responses:
        '200':
          description: Unavailable event updated successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - message
                properties:
                  success:
                    type: boolean
                    description: Whether the operation was successful
                  message:
                    type: string
                    description: Success message
        '400':
          description: >-
            Bad request - Invalid request data or end time must be after start
            time
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden - Not allowed to edit this event
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Event not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    EditUnavailableEventRequest:
      type: object
      required:
        - id
        - title
        - date
        - startTime
        - endTime
      properties:
        id:
          type: string
          description: ID of the unavailable event to edit
        title:
          type: string
          description: 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 (must be after start time)
    Error:
      type: object
      required:
        - message
      properties:
        message:
          type: string

````