Booking
Update accommodation booking settings
Toegang
Lid van de organisatie met dit recht:
organization:settings:write
Een API-sleutel met scopes heeft het recht ook in zijn scopes nodig.
PUT
How a terrain type is offered online: visibility, capacity, prices, nights, photos and amenities.
ApiKeyAuthheader
x-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
id*stringapplication/json- body
bookableOnline*booleanpublicDescription*|nullmaxPersons*|nullincludedPersons*integerRange
0 <= value <= 50basePricePerNight*|nullpricePerAdultPerNight*numberRange
0 <= valuepricePerChildPerNight*numberRange
0 <= valuepricePerAnimalPerNight*numberRange
0 <= valueminNights*integerRange
1 <= value <= 365maxNights*|nulltaxPercentage*numberRange
0 <= value <= 100imageUrls*array<>Items
items <= 12amenities*array<>Items
items <= 30sortOrder*integerRange
0 <= value <= 1000OK
application/json- response
curl -X PUT 'https://api.tillor.eu/orgs//booking/accommodations/string' \ -H 'Content-Type: application/json' \ -d '{ "bookableOnline": true, "publicDescription": "string", "maxPersons": 1, "includedPersons": 0, "basePricePerNight": 0, "pricePerAdultPerNight": 0, "pricePerChildPerNight": 0, "pricePerAnimalPerNight": 0, "minNights": 1, "maxNights": 1, "taxPercentage": 0, "imageUrls": [ "http://example.com" ], "amenities": [ "string" ], "sortOrder": 0}'Example Response
null