plan

Update 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}

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

Changed in 2 of the 22 revisions of this API.27

  • 750ef040fb5726See the full diff
    • ▲

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

      response-property-one-of-added

    • ▲

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

      response-property-one-of-added

    • ○

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

      request-property-discriminator-mapping-added

    • ○

      added ground_ref discriminator mapping keys to the // request property

      request-property-discriminator-mapping-added

    • ○

      added to the //// request property oneOf list

      request-property-one-of-added

    • ○

      added to the // request property oneOf list

      request-property-one-of-added

    • ○

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

      response-property-discriminator-mapping-added

    • ○

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

      response-property-discriminator-mapping-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added