curl --request POST \
--url https://api.example.com/users/{id}/trips \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"lat": 123,
"lng": 123,
"arrive_date": "<string>",
"leave_date": "<string>"
}
'{
"message": "trip created succesfully"
}
Create a new trip for a specific user
curl --request POST \
--url https://api.example.com/users/{id}/trips \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"lat": 123,
"lng": 123,
"arrive_date": "<string>",
"leave_date": "<string>"
}
'{
"message": "trip created succesfully"
}
POST /users/{id}/trips
curl --request POST \
--url https://api.maytravel.com/users/5/trips \
--header 'Content-Type: application/json' \
--data '{
"title": "Summer Beach Trip",
"lat": 34.0522,
"lng": -118.2437,
"arrive_date": "2026-07-15",
"leave_date": "2026-07-22"
}'
{
"message": "trip created succesfully"
}