Skip to main content

Update Rate Plan Model

PATCH 

/gds/vendor/properties/:vendor_property_id/rateplan-models/:vendor_rateplan_model_id

  • Updates a rate plan model's selling conditions. The change applies to every rate plan that references the model.
  • Follows RFC 7396 JSON Merge Patch. i18n is required on update requests as well.
  • Changing channels changes rate plan mappings. Adding a channel creates mappings only for the added channel, and removing a channel does not delete mappings that already exist. An empty array creates mappings on every eligible channel.
  • sale_from and sale_to must both be sent or both omitted.
  • A reference or invariant violation returns 422.

Request​

Responsesapplication/json​

Update result