Lyft
  1. User
Lyft
  • Public
    • Cost estimates
      GET
    • Available drivers nearby
      GET
    • Pickup ETAs
      GET
    • Types of rides
      GET
  • User
    • The user's general info
      GET
    • List rides
      GET
    • Request a Lyft
      POST
    • Get the ride detail of a given ride ID
      GET
    • Cancel a ongoing requested ride
      POST
    • Update the destination of the ride
      PUT
    • Add the passenger's rating, feedback, and tip
      PUT
    • Get the receipt of the rides.
      GET
  • Sandbox
    • Preset Prime Time percentage
      PUT
    • Propagate ride through ride status
      PUT
    • Preset types of rides for sandbox
      PUT
    • Driver availability for processing ride request
      PUT
  1. User

Update the destination of the ride

PUT
/rides/{id}/destination
User
Add or update the ride's destination. Note that the ride must still be active (not droppedOff or canceled), and that destinations on Lyft Line rides can not be changed.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.lyft.com/v1/rides//destination' \
--header 'Content-Type: application/json' \
--data-raw '{
    "address": "123 Main St, Anytown, CA",
    "lat": 36.9442175,
    "lng": -123.8679133
}'
Response Response Example
200 - Example 1
{
  "address": "123 Main St, Anytown, CA",
  "lat": 36.9442175,
  "lng": -123.8679133
}

Request

Path Params
id
string 
required
The ID of the ride
Body Params application/json
lat
number <double>
required
The latitude component of a location
lng
number <double>
required
The longitude component of a location
address
string 
optional
A human readable address at/near the given location
Examples

Responses

🟢200Successfully updated the destination. Returns the new destination.
application/json
Body
lat
number <double>
required
The latitude component of a location
lng
number <double>
required
The longitude component of a location
address
string 
optional
A human readable address at/near the given location
🟠400The 'error' field will be one of the following: * `bad_parameter`: A validation error occurred * `invalid_destination`: Destination is generally invalid (eg. not in a Lyft service area) * `destination_prohibited`: Lyft drop-offs are not permitted at th
🟠403User or client does not have permission to complete this request (`ride_does_not_belong_to_user`)
🟠404No ride found with provided ride ID
Modified at 2023-08-15 05:38:33
Previous
Cancel a ongoing requested ride
Next
Add the passenger's rating, feedback, and tip
Built with