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

> Correct a place annotation, note text, or local time in place.

Omitted fields are preserved; null clears note/time. Changing a time also
reorders the entry because a plan is an ordered document.



## OpenAPI

````yaml /openapi.json patch /v1/trips/{trip_id}/days/{day_number}/entries/{entry_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}/days/{day_number}/entries/{entry_id}:
    patch:
      tags:
        - mcp-server
      summary: Update Entry
      description: >-
        Correct a place annotation, note text, or local time in place.


        Omitted fields are preserved; null clears note/time. Changing a time
        also

        reorders the entry because a plan is an ordered document.
      operationId: >-
        update_entry_v1_trips__trip_id__days__day_number__entries__entry_id__patch
      parameters:
        - name: entry_id
          in: path
          required: true
          schema:
            type: string
            title: Entry Id
        - name: day_number
          in: path
          required: true
          schema:
            type: integer
            minimum: 1
            title: Day Number
        - name: trip_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Trip Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateEntryRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateEntryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UpdateEntryRequest:
      properties:
        note:
          anyOf:
            - type: string
            - type: 'null'
          title: Note
        time:
          anyOf:
            - type: string
              format: time
            - type: 'null'
          title: Time
        content:
          anyOf:
            - type: string
            - type: 'null'
          title: Content
      type: object
      title: UpdateEntryRequest
      description: |-
        Fields to change on an existing entry. Omit one to leave it alone.

        Both are nullable because null is a real value here — it clears. So the
        value can't tell "leave alone" from "set to null"; `model_fields_set` is
        what distinguishes them, which is why the handler reads that rather than
        checking for None.
    UpdateEntryResponse:
      properties:
        entry_id:
          type: string
          title: Entry Id
        plan_version:
          type: integer
          title: Plan Version
      type: object
      required:
        - entry_id
        - plan_version
      title: UpdateEntryResponse
    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

````