Rescheduling a viewing
In order to reschedule a viewing, you need to call the Viewings.RescheduleViewingAsync method on the API client:
var response = await apiClient.Viewings.RescheduleViewingAsync(new RescheduleViewingRequest
{
Id = 123456,
// tomorrow
Date = DateTime.UtcNow.AddDays(1).Date,
// 11am
From = new TimeSpan(11, 0, 0),
// midday
To = new TimeSpan(12, 0, 0),
});
The response variable will contain
a RescheduleViewingResponse object, which will
indicate whether the viewing was rescheduled successfully or not. If it was, there will be
a ViewingDetails object in the Viewing property,
which will contain the information about the viewing that was rescheduled.
Validation
| Name | Type | Required | Max Length | Other Rules |
|---|---|---|---|---|
| Id | int | Yes | - | Must be greater than 0 and must a valid viewing id for the agent |
| Date | DateTime | Yes | - | Must be greater than or equal to today's date |
| From | TimeSpan | Yes | - | Must be a valid time (i.e. 00:00 to 23:59) |
| To | TimeSpan | Yes | - | Must be greater than From and must be a valid time |
| Reason | string (nullable) | No | - |