Hotel Data

Create

POST method to create a hotel data

Parameters

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

Request

Route
POST 
/v2/account/:account_id/hotel_data
Headers
Accept: application/json 
Authorization: Token token={account.secret}
Content-Type: application/json
Body
{
  "uuid": "hotel_2",
  "name": "Hotel 2",
  "items": [
    {
      "language": "ES",
      "data": {
        "hotel_name": "Nombre del hotel"
      }
    },
    {
      "language": "DE",
      "data": {
        "hotel_name": "Name des Hotels"
      }
    }
  ]
}

Response

Status
201
Body
{
  "hotel_data": {
    "name": "Hotel 2",
    "uuid": "hotel_2",
    "hotel_name": {
      "ES": "Nombre del hotel",
      "DE": "Name des Hotels"
    }
  }
}