Skip to content

Update reservation guest data of a single guest

PUT
/v1/reservations/{reservation_id}/guestdata/{guest_id}
Server

Updates the guest data for a reservation id

Authorizations

api_key
TypeAPI Key (header: X-Api-Key)

Parameters

Path Parameters

reservation_id*

XS2event ID of the Reservation

Typestring
Required
guest_id*

XS2event ID of the guest

Typestring
Required

Request Body

JSON
{
"first_name": "John",
"last_name": "Doe",
"passport_number": "ABC123456",
"contact_email": "user@example.com",
"contact_phone": "+31123456789",
"lead_guest": true,
"date_of_birth": "1991-01-30",
"gender": "male",
"country_of_residence": "NLD",
"street_name": "Hereweg 95",
"additional_street_name": "e",
"city": "Groningen",
"zip": "9721AA",
"province": "Groningen",
"guest_id": "string",
"conditions": "string"
}

Responses

OK
application/json
JSON
{
"first_name": "John",
"last_name": "Doe",
"passport_number": "ABC123456",
"contact_email": "user@example.com",
"contact_phone": "+31123456789",
"lead_guest": true,
"date_of_birth": "1991-01-30",
"gender": "male",
"country_of_residence": "NLD",
"street_name": "Hereweg 95",
"additional_street_name": "e",
"city": "Groningen",
"zip": "9721AA",
"province": "Groningen",
"guest_id": "string",
"conditions": "string"
}

Samples

cURL
curl -X PUT \
'https://api.xs2event.com/v1/reservations/{reservation_id}/guestdata/{guest_id}' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://api.xs2event.com/v1/reservations/{reservation_id}/guestdata/{guest_id}', {method:'PUT',headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://api.xs2event.com/v1/reservations/{reservation_id}/guestdata/{guest_id}';
$method = 'PUT';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://api.xs2event.com/v1/reservations/{reservation_id}/guestdata/{guest_id}'

headers = {
    'Content-Type': 'application/json'
}

response = requests.put(url, headers=headers)
print(response.json())