PUT
/rateshop/{rateshopid}Update Rateshop
PUT
/rateshop/{rateshopid}Optional Fields
- body
Parameter Details
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rateshopid | path | integer(int32) | Required | none |
body | body | newrateshop | Optional | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | schemarateshopexamplevalues |
| 400 | Bad Request | Error | |
| 401 | Unauthorized | Authorization has been denied for this request | |
| 429 | Too Many Requests | You have exceeded your access limit | |
Example Request
# You can also use wget
curl -X PUT /rateshop/{rateshopid} \
-H 'Content-Type: application/json' \
-H 'Accept: text/plain' \
-H 'Authorization: Bearer {access-token}'
Body parameter
{
"rateshopname": "string",
"los": 0,
"occupancy": 0,
"currency": "string",
"currencies": [
"string"
],
"fetchtype": 0,
"horizon": 0,
"hotelcodes": [
0
],
"compsets": [
{
"hotelcode": 0,
"competitorhotelcodes": [
0
]
}
],
"sources": [
0
],
"horizonexpression": "2-10, 11, 13, 15, 20-25",
"pos": 0
}
Example responses
200 Response
{"error":false,"rateshop":{"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}}
Example responses
200 Response
{
"error": false,
"rateshop": {
"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.