hotel data custom fields

Create

POST method to create hotel data custom fields.

Parameters

Name Description
account_id required Your account unique identifier to access API.
name required Name for the field.
label Human friendly label for the field.
description Description for the custom field.
category Category for the custom field.
is_url If the custom field is a url,set to: true

Request

Route
POST 
/v2/account/:account_id/hotel_data_custom_fields
Headers
Accept: application/json 
Authorization: Token token={account.secret}
Content-Type: json
Body
{
  "name": "facebook_id",
  "label": "ID on Facebook",
  "category": "Social",
  "description": "This field save the hotel data facebook id"
}

Response

Status
201
Body
{
  "_id": "5853d8c2edb7aacab9000045",
  "category": "Social",
  "name": "facebook_id",
  "label": "ID on Facebook",
  "description": "This field save the hotel data facebook id",
  "type": "string",
  "is_url": false
}