Lyft API
  1. Sandbox
Lyft API
  • Restricted
  • 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
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.lyft.com/sandbox/ridetypes/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "driver_availability": true,
    "lat": 37.7833,
    "lng": -122.4167
}'
响应示例响应示例
204 - 示例 1
{}

请求参数

Path 参数
ride_type
enum<string> 
必需
枚举值:
lyftlyft_linelyft_pluslyft_premierlyft_luxlyft_luxsuv
Body 参数application/json
driver_availability
boolean 
必需
The availability of driver in a region
lat
number <double>
必需
The latitude component of a location
lng
number <double>
必需
The longitude component of a location
示例

返回响应

🟢204删除成功
application/json
Successfully set driver availability in sandbox
Body
object {0}
🟠400请求有误
🟠404记录不存在

【Lyft】API开发者 微信交流群

用微信扫右侧二维码,加入【Lyft】API开发者 交流群,互助沟通

扫码加入交流群
上一页
Preset types of rides for sandbox
Built with