plan

Save user-edited plan with optimistic concurrency.

PlanUpdateRequest's model_validator(mode='before') calls sanitize_incoming_plan_payload first, so legacy entry types from stale frontend caches (journey_ref / stay_ref / dangling date_source_id) are quietly stripped before Pydantic validates the inner PlanContent.

put/trips/{trip_id}/plans/{plan_id}

Request

  • Base URL
    https://stardrift.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://stardrift.ai/trips/{trip_id}/plans/{plan_id}
  • Auth
    none declared

Path parameters

trip_idstring required
plan_idstring required

Headers

x-client-idstring nullable

Request body

versioninteger required

Response

Successful Response

idstring required
versioninteger required
rebasedboolean

Changes

    • breaking

      added to the //// response property oneOf list for the response status

    • breaking

      added to the // response property oneOf list for the response status

    • info

      added ground_ref discriminator mapping keys to the //// request property

    • info

      added ground_ref discriminator mapping keys to the // request property

    • info

      added to the //// request property oneOf list

    • info

      added to the // request property oneOf list

    • info

      added ground_ref discriminator mapping keys to the //// response property for the response status

    • info

      added ground_ref discriminator mapping keys to the // response property for the response status

    • info

      added the optional property to the response with the status