in uber_rides/client.py [0:0]
def update_sandbox_ride(self, ride_id, new_status):
"""Update the status of an ongoing sandbox request.
Params
ride_id (str)
The unique ID of the Ride Request.
new_status (str)
Status from VALID_PRODUCT_STATUS.
Returns
(Response)
A Response object with successful status_code
if ride status was updated.
"""
if new_status not in VALID_PRODUCT_STATUS:
message = '{} is not a valid product status.'
raise UberIllegalState(message.format(new_status))
args = {'status': new_status}
endpoint = 'v1.2/sandbox/requests/{}'.format(ride_id)
return self._api_call('PUT', endpoint, args=args)