Create / Update Property Settings - Specific Setting
Last updated
Was this helpful?
Last updated
Was this helpful?
When a user changes the pricing type (for example, from room-based to OBP or vice versa), the system should update both the property settings and all associated rate plans accordingly, ensuring that the pricing structure reflects the new type, either by pricing based on rooms or occupancy, across all rooms and platforms.
POST
app-id
string
Yes
Your application ID. Required for authentication.
Authorization
string
Yes
Your API key for authorization.
Content-Type
string
Yes
Must be set to application/json
.
Attributes
hotel_id
string (Required)
The unique property ID as assigned by the provider upon creation of the property.
channel_hotel_id
string (Required)
The unique id for the hotel on the specific channel.
property_settings
object (Optional)
Contains multiple various settings related to the property.
pricing_type
enum (Optional)
Specifies the property's pricing type. Can be Standard
or OBP
.
Status
string
Indicates the overall status of the request. In this case, "Success" means the operation was completed successfully.
Message
string
Provides a brief message about the outcome. Here, it states "Successfully done," confirming that the request was processed without issues.
data
object
Contains detailed results of the various settings processed in the request.
property_settings
object
Indicates whether the property settings were successfully updated. Here, it is true.
success
boolean
Indicates whether the property settings are created/modified successfully.
Sample Error Response 1
Sample Error Response 2
Sample Error Response 3
Sample Error Response 4
Error Response Body Elements
Status
string
Indicates the result of the API call, which will be always "Fail"
in case of an error response.
Error
array
Array that contains details about any errors that occurred during the API call. Each object in the Errors
array contains the following properties:
Code
string
Specific error code that helps identify the type of error.
ShortText
string
A short description of the error.
Message
string
A message providing more information about the error.