Update price for Rate by base price [PUT]

Operation

Updates the prices in Base Price type of a Rate for certain accommodations and dates.

PUT
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/rate/{rateId}/availability/basePrice


Request

PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter

propertyIdIntegertruepath parameter

rateIdIntegertruepath parameter

Example request

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


Entity


FieldTypeRequiredDescription
rateRatetrueRate of this relationship.
rateBasePriceAvailabilityListArray of RateBasePriceAvailabilitytrueThe list of related availability per day.

Example Body

The body that will be sent in the operation

{
	"rate": {
		"id": 32,
		"code": "FIT",
		"name": "FIT",
		"rateType": {
			"id": 10,
			"code": "PAC",
			"name": "Package"
		}
	},
	"rateBasePriceAvailabilityList": [{
			"date": "2022-11-18",
			"price": 192.000000,
			"closed": true,
			"minStay": 0,
			"maxStay": 0,
			"closedToArrival": false,
			"closedToDeparture": false
		},
		{
			"date": "2022-11-19",
			"price": 165.000000,
			"closed": true,
			"minStay": 0,
			"maxStay": 0,
			"closedToArrival": false,
			"closedToDeparture": false
		}
	]
}

Response

PropertyTypeRequiredDescription
ResponseApiMessageResponseApiMessagetrueDescription of the response of the success operation

Example response

{
  "httpStatus": "201",
  "userMessage": "Success",
  "technicalMessage": "Success prices updated",
  "errorCode": "0",
  "id": 1
}