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

Driver availability for processing ride request

PUT
/sandbox/ridetypes/{ride_type}
Sandbox
Set driver availability for the provided ride_type in the city/region surrounding the specified location
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 '{
    "driver_availability": true,
    "lat": 37.7833,
    "lng": -122.4167
}'
Response Response Example
204 - Example 1
{}

Request

Path Params
ride_type
string 
required
Body Params application/json
driver_availability
boolean 
required
The availability of driver in a region
lat
number <double>
required
The latitude component of a location
lng
number <double>
required
The longitude component of a location
Examples

Responses

🟢204Successfully set driver availability in sandbox
application/json
Body
object {0}
🟠400Validation error occurred
🟠404ride_type provided in the path is not supported in the current area
Modified at 2023-08-15 05:38:33
Previous
Preset types of rides for sandbox
Built with