Update OfferProductOccupancyAvailabilityInterval [PUT]

Operation

Updates list of Offers ProductOccupancy Availability by Interval list.

PUT
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/offer/offerProductOccupancy/offerProductOccupancyAvailability/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/offer/offerProductOccupancy/offerProductOccupancyAvailability/interval


Entity


FieldTypeRequiredDescription
offerListList<Offer>falselist of offer.
accommodationListList<Accommodation>falselist of accommodation.
intervalListList<Interval>falselist of intervals.
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 percentDiscount.
percentDiscountBigDecimalfalsepercent of Discount.
updateAmountDiscountBooleanfalseupdate amountDiscount.
amountDiscountBigDecimalfalseimport of Discount.

Example Body

The body that will be sent in the operation

{
  "offerList":[
      {"id":2},
      {"id":17},
      {"id":32},
      {"id":47},
      {"id":62}
  ],
  "closed": false,
  "closedToArrival": false,
  "closedToDeparture": false,
  "maxStay": "5",
  "minStay": "1",
  "intervalList": [
    {
      "startDate": "2023-10-23",
      "endDate": "2023-10-28",
      "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
    }
  ],
  "accommodationList": [
    692,
    707,
    722,
    737,
    752,
    767,
    782,
    797,
    812
  ],
  "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 offerProductDailyPrice Interval updated ",
    "errorCode": "0",
    "moreInfo": "0",
    "id": 0,
    "entity": null,
    "responseApiErrorList": null
}