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

> Modifies an existing booking

<Note>This is for editing a session within a booking.</Note>


## OpenAPI

````yaml POST /bookings/edit-booking
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:
  /bookings/edit-booking:
    post:
      summary: Edit Booking
      description: Modifies an existing booking
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditBookingRequest'
      responses:
        '200':
          description: Booking edited successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                properties:
                  success:
                    type: boolean
                    description: Whether the operation was successful
components:
  schemas:
    EditBookingRequest:
      type: object
      required:
        - id
        - dateTimestamp
        - startTime
        - endTime
        - location
        - sessionType
        - sessionNumber
      properties:
        id:
          type: string
          description: ID of the booking to edit
        dateTimestamp:
          type: number
          description: Timestamp for the session date
        startTime:
          type: number
          description: Session start time timestamp
        endTime:
          type: number
          description: Session end time timestamp
        location:
          $ref: '#/components/schemas/Location'
          description: Location details for the session
        sessionType:
          type: string
          enum:
            - CONSULTATION
            - TATTOO
          description: Type of session
        sessionPrice:
          type: string
          description: Price for the session
        sessionDepositFee:
          type: string
          description: Deposit fee for the session
        sessionNumber:
          type: number
          description: Number of the session being edited
    Location:
      type: object
      required:
        - address
        - city
        - state
        - country
        - latitude
        - longitude
      properties:
        address:
          type: string
          description: Street address
        city:
          type: string
          description: City name
        state:
          type: string
          description: State/province
        country:
          type: string
          description: Country
        latitude:
          type: number
          description: Location latitude
        longitude:
          type: number
          description: Location longitude

````