Update Viewing

Send a PUT request to https://wms.access2view.co.uk/api/v1/order/__order_id__/tasks/__task_id__/viewings/__viewing_id__.

Sample JSON

{
    "conduct_date_start": "2017-09-07T08:00:00+0000",
    "status": 200,
    "viewer": {
        "name": "Joe Bloggs",
        "mobile": "07900000000",
        "email": "joe.bloggs@example.com"
    }
}

Sample XML

<?xml version="1.0" encoding="UTF-8"?>
<json:object xmlns:json="http://www.ibm.com/xmlns/prod/2009/jsonx" xsi:schemaLocation="http://www.datapower.com/schemas/json jsonx.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <json:string name="conduct_date_start">2017-09-07T08:00:00+0000</json:string>
 <json:number name="status">200</json:number>
 <json:object name="viewer">
  <json:string name="name">Joe Bloggs</json:string>
  <json:string name="mobile">07900000000</json:string>
  <json:string name="email">joe.bloggs@example.com</json:string>
 </json:object>
</json:object>

Structure

Path Type
conduct_date_start ISO8601 DateTime Use the availability endpoint to get available viewing slots.
The viewing must have Viewer's details when booking a time slot otherwise a 400 response will be served
status
  • 100 Active
  • 200 Completed
  • 300 No Show
  • 900 Cancelled
One of the predefined integers
viewer Object
viewer.name string
viewer.mobile string
viewer.email string
feedback Array<Object> Feedback is required when setting the viewing status to 200 (Completed)
The required questions can be obtained by fetching a viewing from the API
feedback.*.question_id integer
feedback.*.answer mixed The answer type depends upon the question type