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

# Update Stay On Trip

> Change a booking in place — dates, price, or its confirmation number.

Without this a stay could be recorded and never corrected: the confirmation
number could only be set at creation, and a booking whose dates moved had no
path back short of leaving a stale one behind, since removing was not
possible either.



## OpenAPI

````yaml /openapi.json patch /v1/trips/{trip_id}/stays/{stay_id}
openapi: 3.1.0
info:
  title: Stardrift API
  description: >-
    Read and edit the authenticated user's trips, itineraries, recorded
    bookings, and saved lists. Private records are owner-scoped. MCP tool names
    are documented separately from these HTTP operations.
  version: v1
servers:
  - url: https://stardrift.ai/api
security: []
paths:
  /v1/trips/{trip_id}/stays/{stay_id}:
    patch:
      tags:
        - mcp-server
      summary: Update Stay On Trip
      description: >-
        Change a booking in place — dates, price, or its confirmation number.


        Without this a stay could be recorded and never corrected: the
        confirmation

        number could only be set at creation, and a booking whose dates moved
        had no

        path back short of leaving a stale one behind, since removing was not

        possible either.
      operationId: update_stay_on_trip_v1_trips__trip_id__stays__stay_id__patch
      parameters:
        - name: trip_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Trip Id
        - name: stay_id
          in: path
          required: true
          schema:
            type: string
            title: Stay Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateStayRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Update Stay On Trip V1 Trips  Trip Id  Stays  Stay
                  Id  Patch
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UpdateStayRequest:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        check_in_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Check In Date
        check_out_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Check Out Date
        check_in_time:
          anyOf:
            - type: string
              format: time
            - type: 'null'
          title: Check In Time
        check_out_time:
          anyOf:
            - type: string
              format: time
            - type: 'null'
          title: Check Out Time
        total_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Total Price
        currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Currency
        confirmation_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Confirmation Number
        is_booked:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Booked
      type: object
      title: UpdateStayRequest
      description: |-
        Fields to change on an existing stay. Omit one to leave it alone.

        A check-in or check-out time sent as an explicit null is cleared; every
        other field sent as null is left alone, matching UpdateStayAction.
    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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````