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 Prime Time percentage

PUT
/sandbox/primetime
Sandbox
Preset a Prime Time percentage in the region surrounding the specified location. This Prime Time percentage will be applied when requesting cost, or when requesting a ride in sandbox mode.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.lyft.com/v1/sandbox/primetime' \
--header 'Content-Type: application/json' \
--data-raw '{
    "lat": 37.7833,
    "lng": -122.4167,
    "primetime_percentage": "25%"
}'
Response Response Example
204 - Example 1
{}

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
primetime_percentage
string 
required
The Prime Time to be applied as a string, e.g., '25%'
Examples

Responses

🟢204Successfully applied Prime Time in sandbox
application/json
Body
object {0}
🟠400Validation error occurred
Modified at 2023-08-15 05:38:33
Previous
Get the receipt of the rides.
Next
Propagate ride through ride status
Built with