Update paperwork status and fields
PATCH/v1/partner/bookings/:booking_id/paperwork
Allows you to update paperwork status and fields for a booking. Every location can have its own set of paperwork fields. Giving a paperwork field to a location that does not support that field will result in a 400 error with a description of the offending field. To find which paperwork fields are valid for a location, use the GET v1/partner/locations/<location_id>/paperwork-field call. The values for the paperwork fields depend on the field_type for that field.
Token scope:{'scope': 'write:bookings'}
Request​
Path Parameters
The unique identifier of the booking for which to update paperwork.
- application/json
Body
required
A JSON object where keys are paperwork field names and values are the responses for those fields. The field names and value types should match those returned by the GET paperwork-fields endpoint for the booking's location.
The new status to set for the paperwork. Must be one of the valid PaperworkStatuses.
Responses​
- 200
- 400
- 403
- 404
- 422
Successful operation. Returns the updated booking object.
- application/json
- Schema
- Example (from schema)
Schema
{
"address_city": "string",
"address_state": "string",
"address_street": "string",
"address_street_secondary": "string",
"address_zip": "string",
"appointment_date": "string",
"birth_date": "string",
"birth_sex": "string",
"custom_booking_management_url": "string",
"email": "string",
"emr_booking_id": "string",
"first_name": "string",
"gender": "string",
"id": 0,
"is_walk_in": true,
"last_name": "string",
"location_id": 0,
"paperwork_status": "string",
"phone": "string",
"reason": "string",
"status": "string"
}
Bad request. Invalid paperwork field provided.
Access denied due to insufficient permissions.
The requested booking could not be found.
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}