curl --request PATCH \
--url https://staging.housera.ro/api/v1/viewings/{slot}/open-house \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"starts_at": "<string>",
"ends_at": "<string>",
"note": "<string>",
"rsvp": true,
"capacity": 250
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.housera.ro/api/v1/viewings/{slot}/open-house",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'starts_at' => '<string>',
'ends_at' => '<string>',
'note' => '<string>',
'rsvp' => true,
'capacity' => 250
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
starts_at: '<string>',
ends_at: '<string>',
note: '<string>',
rsvp: true,
capacity: 250
})
};
fetch('https://staging.housera.ro/api/v1/viewings/{slot}/open-house', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.housera.ro/api/v1/viewings/{slot}/open-house"
payload = {
"starts_at": "<string>",
"ends_at": "<string>",
"note": "<string>",
"rsvp": True,
"capacity": 250
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": 123,
"kind": "viewing",
"starts_at": "<string>",
"ends_at": "<string>",
"status": "completed",
"request_expires_at": "<string>",
"visitor": {
"name": "<string>",
"email": null,
"phone": "<string>",
"account": true
},
"source": "schedule",
"duration_min": 123,
"held": true,
"bookable": "<string>",
"booked_at": "<string>",
"proposed_starts_at": "<string>",
"attendance_confirmed_at": "<string>",
"reminded_day_at": "<string>",
"reminded_soon_at": "<string>",
"outcome": "offer",
"outcome_at": "<string>",
"agent": {
"name": "<string>",
"email": "<string>"
},
"place": "office",
"place_rooms": 123,
"seat": 123
},
"warnings": [
{
"pointer": "/capacity",
"code": "capacity_not_applicable"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"detail": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}Change an open house window
Changes a window’s hours, note, rsvp or places (capacity), under the same rules as the Open house page on the portal. Fields you don’t send stay as they are, and note: null removes the note. The hours move under the agenda’s rules, without overlaps. A project’s visit day keeps its places: you can change them, but not remove them. On a listing that isn’t a project, capacity is ignored with the capacity_not_applicable warning. A time that isn’t an open house gets a 404.
curl --request PATCH \
--url https://staging.housera.ro/api/v1/viewings/{slot}/open-house \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"starts_at": "<string>",
"ends_at": "<string>",
"note": "<string>",
"rsvp": true,
"capacity": 250
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.housera.ro/api/v1/viewings/{slot}/open-house",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'starts_at' => '<string>',
'ends_at' => '<string>',
'note' => '<string>',
'rsvp' => true,
'capacity' => 250
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
starts_at: '<string>',
ends_at: '<string>',
note: '<string>',
rsvp: true,
capacity: 250
})
};
fetch('https://staging.housera.ro/api/v1/viewings/{slot}/open-house', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.housera.ro/api/v1/viewings/{slot}/open-house"
payload = {
"starts_at": "<string>",
"ends_at": "<string>",
"note": "<string>",
"rsvp": True,
"capacity": 250
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": 123,
"kind": "viewing",
"starts_at": "<string>",
"ends_at": "<string>",
"status": "completed",
"request_expires_at": "<string>",
"visitor": {
"name": "<string>",
"email": null,
"phone": "<string>",
"account": true
},
"source": "schedule",
"duration_min": 123,
"held": true,
"bookable": "<string>",
"booked_at": "<string>",
"proposed_starts_at": "<string>",
"attendance_confirmed_at": "<string>",
"reminded_day_at": "<string>",
"reminded_soon_at": "<string>",
"outcome": "offer",
"outcome_at": "<string>",
"agent": {
"name": "<string>",
"email": "<string>"
},
"place": "office",
"place_rooms": 123,
"seat": 123
},
"warnings": [
{
"pointer": "/capacity",
"code": "capacity_not_applicable"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"detail": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}Query Parameters
The response language, ro or en. It changes error messages (title, detail), labels and, when the listing has an approved translation in that language, its title and description. Codes are the same in every language. It takes precedence over Accept-Language and over the account's language.
ro, en Body
Response
The window, with its open_house object, plus warnings[].