PUT
/rateshop/{rateshopid}Update Rateshop
Implementation Notes
This API call enables the user to update the configuration details of an existing RateShop associated with a rateshop ID.PUT
/rateshop/{rateshopid}Parameter Details
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rateshopid | path | integer(int32) | Required | none |
body | body | Optional | none | |
» rateshopname | body | string | Optional | none |
» los | body | integer | Optional | none |
» occupancy | body | integer | Optional | none |
» currency | body | string | Optional | none |
» currencies | body | [string] | Optional | none |
» fetchtype | body | integer | Optional | none |
» horizon | body | integer | Optional | none |
» hotelcodes | body | Optional | none | |
» compsets | body | Optional | none | |
»» hotelcode | body | number | Optional | none |
»» competitorhotelcodes | body | Optional | none | |
» sources | body | [integer] | Optional | none |
» horizonexpression | body | string | Optional | none |
» pos | body | number | Optional | none |
» horizonrange | body | string | Optional | none |
» directsource | body | number | Optional | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | None |
| 400 | Bad Request | Bad Request | None |
| 401 | Unauthorized | Authentication Failed or Account validity expired | None |
| 500 | Internal Server Error | Internal server error | None |
Example Request
# You can also use wget
curl -X PUT /rateshop/{rateshopid} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
Example responses
200 Response
{
"rateshopid": 0,
"rateshopname": "string",
"los": 0,
"occupancy": 0,
"currency": "string",
"currencies": [
"string"
],
"fetchtype": 0,
"horizon": 0,
"hotelcodes": [
0
],
"compsets": [
{
"hotelcode": 0,
"competitorhotelcodes": [
0
]
}
],
"sources": [
0
],
"horizonexpression": "string",
"pos": 0
}Need Support?
Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.