PUT method to create/update languange for hotel
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' |
PUT
/v2/account/:account_id/hotel_data/:uuid/add_language
Accept: application/json
Authorization: Token token={account.secret}
Content-Type: application/json
{
"language": "FR",
"data": {
"hotel_name": "Nom de l'hôtel"
}
}
200
{
"hotel_data": {
"name": "Hotel 2",
"uuid": "hotel_2",
"hotel_name": {
"ES": "Nombre del hotel",
"DE": "Name des Hotels",
"FR": "Nom de l'hôtel"
}
}
}