Update Trip API v1
This API allows you to update the origin, destination or user_id for a given trip_id before starting the trip.
Update Trip API
PUT
https://api.roam.ai/v1/api/trips/
Headers
Name | Type | Description |
---|---|---|
Api-key | string | Auth-key E.g.- 33223kjhdcscijhb5sdbsdmjsdcbj5f |
Request Body
Name | Type | Description |
---|---|---|
user_id | string | user_id to which the trip is to be reassigned E.g.- 5d9450ace47bae6d70064a9q |
trip_id | string | Trip id which needs to be modified. E.g.- 5d9450ace47bae6d70064a9b |
origins | array | Origin location in [long, lat] format. E.g.- [[77.677270, 12.914131]] |
destinations | array | Destination location in [long, lat] format. E.g.- [[77.700475, 12.957005]] |
Sample Request
Last updated