PUT/rateshop/{rateshopid}

Update Rateshop

PUT/rateshop/{rateshopid}

Optional Fields

  • body

Parameter Details

NameInTypeRequiredDescription
rateshopidpathinteger(int32)Requirednone
bodybodynewrateshopOptionalnone

Responses

StatusMeaningDescriptionSchema
200OKSuccessschemarateshopexamplevalues
400Bad RequestError
401UnauthorizedAuthorization has been denied for this request
429Too Many RequestsYou 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.