react-native-radar icon indicating copy to clipboard operation
react-native-radar copied to clipboard

Create new trip from API??

Open janogarciardz opened this issue 3 years ago • 1 comments

Create new trip from API??

janogarciardz avatar Oct 14 '21 19:10 janogarciardz

Create new trip from API??

@janogarciardz I was informed the following call will "upsert" a trip.

curl --location --request PATCH 'https://api-staging.radar.io/v1/trips/12345' \
--header "Authorization: apikey" \
--header 'Content-Type: application/json' \
--data-raw '{
    "mode": "car",
    "status": "pending",
    "destinationGeofenceTag": "tag",
    "destinationGeofenceExternalId": "12345"
}'

rstims avatar Feb 01 '22 05:02 rstims

thanks @rstims - we have an updated POST endpoint to create a trip (also used in new SDK versions). Documentation here: https://radar.com/documentation/api#create-a-new-trip

brettguenther avatar Jun 30 '23 13:06 brettguenther