post Restrictions Process
POST {{HostName}}/par/async/v1/externalSystems/{{ExtSystemCode}}/hotels/{{HotelId}}/restrictions
- Type of Async API: Posts data to OPERA Cloud
Module: Availability
Operation ID: postRestrictionsProcess (POST)
Purpose: A user can send various restrictions to OPERA Cloud by specifying restriction details in the request. You can set restrictions for a whole year and have multiple restrictions on a given day. However, there can be a hierarchy of restrictions. For further guidance, review the OPERA PMS Help.
Request Body
{"restrictions"=>[{"restrictionStatus"=>{"code"=>"Closed"}, "ratePlanCodes"=>["string"], "roomTypes"=>["string"], "ratePlanCategories"=>["string"], "seasonCode"=>"string", "blockId"=>{"id"=>"string"}, "bookingChannelOnRequest"=>"s", "dateRangeStart"=>"2023-06-29", "dateRangeEnd"=>"2023-06-29", "sunday"=>true, "monday"=>true, "tuesday"=>true, "wednesday"=>true, "thursday"=>true, "friday"=>true, "saturday"=>true, "yieldStatus"=>"Yieldable"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
x-hotelId | string | ||
x-app-key | string |