Lyft
  1. Sandbox
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. Sandbox

Preset types of rides for sandbox

PUT
/sandbox/ridetypes
Sandbox
The sandbox-ridetypes endpoint allows you to preset the ridetypes in the region surrounding the specified latitude and longitude to allow testing different scenarios
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.lyft.com/v1/sandbox/ridetypes' \
--header 'Content-Type: application/json' \
--data-raw '{
    "lat": 37.7833,
    "lng": -122.4167,
    "ride_types": [
        "lyft",
        "lyft_line",
        "lyft_plus"
    ]
}'
Response Response Example
200 - Example 1
{
  "lat": 37.7833,
  "lng": -122.4167,
  "ride_types": [
    "lyft",
    "lyft_line",
    "lyft_plus"
  ]
}

Request

Body Params application/json
lat
number <double>
required
The latitude component of a location
lng
number <double>
required
The longitude component of a location
ride_types
array[string]
required
Allowed values:
lyftlyft_linelyft_pluslyft_premierlyft_luxlyft_luxsuv
Examples

Responses

🟢200An object listing the ridetypes at a given location
application/json
Body
lat
number <double>
required
The latitude component of a location
lng
number <double>
required
The longitude component of a location
ride_types
array[string]
required
Allowed values:
lyftlyft_linelyft_pluslyft_premierlyft_luxlyft_luxsuv
🟠400Validation error occurred
Modified at 2023-08-15 05:38:33
Previous
Propagate ride through ride status
Next
Driver availability for processing ride request
Built with