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

Propagate ride through ride status

PUT
/sandbox/rides/{id}
Sandbox
Propagate a sandbox-ride through various ride status
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.lyft.com/sandbox/rides/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "status": "lyft"
}'
响应示例响应示例
200 - 示例 1
{
    "ride_id": 123456789,
    "status": "accepted"
}

请求参数

Path 参数
id
string 
必需
The ID of the ride
Body 参数application/json
status
enum<string> 
必需
The status of the ride
枚举值:
pendingacceptedarrivedpickedUpdroppedOffcanceledscheduledunknown
示例

返回响应

🟢200成功
application/json
An object with the Ride ID and the new status
Body
Response when a sandbox ride is propagated through ride status
ride_id
string 
可选
The ID of the ride
status
enum<string> 
可选
The status of the ride
枚举值:
pendingacceptedarrivedpickedUpdroppedOffcanceledscheduledunknown
🟠400请求有误
🟠403禁止访问

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

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

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