Hotel Data

Update

PUT method to create/update languange for hotel

Parameters

Name Description
account_id required Your account unique identifier to access API.
uuid required Unique identifier for hotel
language required Language of the hotel in ISO-2 format, Example: ES
data required JSON with custom fields for hotel data
data[Your custom hotel data field] required You can create a custom field hotel data and use it within your API request: 'https://www.cendyncrm.com/settings/hotel_data_custom_fields'

Request

Route
PUT 
/v2/account/:account_id/hotel_data/:uuid/add_language
Headers
Accept: application/json 
Authorization: Token token={account.secret}
Content-Type: application/json
Body
{
  "language": "FR",
  "data": {
    "hotel_name": "Nom de l'hôtel"
  }
}

Response

Status
200
Body
{
  "hotel_data": {
    "name": "Hotel 2",
    "uuid": "hotel_2",
    "hotel_name": {
      "ES": "Nombre del hotel",
      "DE": "Name des Hotels",
      "FR": "Nom de l'hôtel"
    }
  }
}