Skip to content

Overlay multiple Contacts for a Property

Request

Contacts not sent will be reset/deleted.

Path
propertyIdinteger, (int32)required

The Property ID of which you wish to update the data

Headers
Accept-Versionstring
Bodyapplication/json
contactsArray of objects(Contact)required

General contact type is mandatory for setting up the property. Validation: ContactProfileType entries cannot be repeated within the same array. General contact can have only 1 entry in total. Current Documentation: ContactInfo Root Object

curl -i -X PUT \
  'https://developers.booking.com/_mock/connectivity/docs/openapispecs/contacts-api/contacts-api-specification/properties/{propertyId}/contacts' \
  -H 'Accept-Version: string' \
  -H 'Content-Type: application/json' \
  -d '{
    "contacts": [
      {
        "contact_profiles": [
          {
            "type": "general"
          }
        ],
        "address": {
          "city_name": "string",
          "country_code": "string",
          "postal_code": "string",
          "address_line": "string",
          "language_code": "string"
        },
        "contact_person": {
          "gender": "male, female",
          "name": "string",
          "job_title": "string",
          "language_code": "string"
        },
        "phones": [
          {
            "phone_number": "string",
            "phone_tech_type": 1,
            "extension": "string"
          }
        ],
        "email": "string"
      }
    ]
  }'

Responses

successful operation

Bodyapplication/json
warningsArray of objects(ApiError)
errorsArray of objects(ApiError)
metaobject(ResponseMeta)
Response
{ "warnings": [ {} ], "errors": [ {} ], "meta": { "ruid": "string" } }