Update RateProductOccupancyAvailabilityInterval [PUT]

Operation

Updates list of Rates ProductOccupancy Availability by Interval list.

PUT
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/rate/rateProductOccupancy/rateProductOccupancyAvailability/interval


Request

PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter

propertyIdIntegertruepath parameter

Example request

PUT https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/2/rate/rateProductOccupancy/rateProductOccupancyAvailability/interval


Entity


FieldTypeRequiredDescription
rateListList<Rate>falselist of rate.
accommodationListList<Accommodation>falselist of accommodation.
intervalListList<Interval>falselist of intervals.
updateAmountBooleanfalseupdate amount.
amountBigDecimalfalseamount.
updateClosedBooleanfalseupdate closed.
closedBooleanfalseclosed or open.
updateMinStayBooleanfalseupdate minStay.
minStayIntegerfalseminStay number of nights.
updateMaxStayBooleanfalseupdate maxStay.
maxStayIntegerfalsemaxStay number of  nights.
updateClosedToArrivalBooleanfalseupdate closedToArrival.
closedToArrivalBooleanfalseis closedToArrival.
updateClosedToDepartureBooleanfalseupdate closedToDeparture.
closedToDepartureBooleanfalseis closedToDeparture.
updatePercentDiscountBooleanfalseupdate percent of Discount.
percentDiscountBigDecimalfalsepercent of Discount.
updateAmountDiscountBooleanfalseupdate amountDiscount.
amountDiscountBigDecimalfalseimport of Discount.

Example Body

The body that will be sent in the operation

{
  "rateList":[
    {
        "id": 2,
        "code": "BAR",
        "name": "Best Available Rate",
        "rateType": {
            "id": 13,
            "code": "SEN",
            "name": "Senior Citizen"
        }
    }
  ],
  "accommodationList": [
    {
        "id": 692,
        "name": "Single",
        "code": null,
        "roomType": {
            "id": 2,
            "chainRoomTypeId": 1,
            "name": "Single",
            "nameI18n": "Single",
            "mainImage": "1/2/propertyroomtypeimages/cdded556-6308-4f88-8cd8-7b4b836b4bba.jpg",
            "active": true
        }
    }
  ],
  "intervalList": [
    {
      "startDate": "2023-10-23",
      "endDate": "2023-10-31",
      "monday": true,
      "tuesday": true,
      "wednesday": true,
      "thursday": true,
      "friday": true,
      "saturday": true,
      "sunday": true
    },
    {
      "startDate": "2023-11-19",
      "endDate": "2023-11-30",
      "monday": true,
      "tuesday": true,
      "wednesday": true,
      "thursday": true,
      "friday": true,
      "saturday": true,
      "sunday": true
    }
  ],
  "closed": false,
  "closedToArrival": true,
  "closedToDeparture": false,
  "maxStay": "7",
  "minStay": "1",
  "updateClosed": true,
  "updateClosedToArrival": true,
  "updateClosedToDeparture": true,
  "updateMaxStay": true,
  "updateMinStay": true
}

Response

PropertyTypeRequiredDescription
ResponseApiMessageResponseApiMessagetrueDescription of the response of the success operation

Example response

{
    "httpStatus": "201",
    "userMessage": "Success",
    "technicalMessage": "Success RateProductOccupancyAvailability Interval List updated",
    "errorCode": "0",
    "moreInfo": "0",
    "id": 0,
    "entity": null,
    "responseApiErrorList": null
}