Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Operation

Updates list of Rates ProductOccupancy Availability by Interval list.

Rw ui textbox macro
typewarning

Only accessible with permission of pms.integration.rate


Style
table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



Div
style background-color: khaki; color: black; display: inline-block; padding: 5px; border-radius: 3px;

PUT



Div
stylebackground-color: #0a2b1d; padding: 10px 1em; display: inline-block; color: white; border-radius: 3px;

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

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



Entity

Insert excerpt
RateProductOccupancyAvailabilityInterval
RateProductOccupancyAvailabilityInterval
nopaneltrue

Example Body

The body that will be sent in the operation

Code Block
themeDJango
{
  "rateList":[
    {
 {       "id":2}, 2,
        "code": "BAR",
        "name": "Best Available Rate",
        "rateType": {
            "id":17} 13,
       {"id":32}     "code": "SEN",
      {"id":92      "name": "Senior Citizen"
        }
    }
  ],
  "accommodationList": [
    {
 {       "id": 692},
        {"idname": 707}"Single",
      {  "idcode": 722}null,
        "roomType": {
            "id": 737}2,
      {"id      "chainRoomTypeId": 752},1,
          {  "idname": 767},"Single",
           { "idnameI18n": 782}"Single",
      {"id": 797}      "mainImage": "1/2/propertyroomtypeimages/cdded556-6308-4f88-8cd8-7b4b836b4bba.jpg",
      {"id      "active": 812 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

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