/trip/edit

From EveryTrail API Developer Documentation

Jump to: navigation, search

Contents

URL

/api/trip/edit

Semantics

Update a pre-existing trip

Parameters

Parameter nameParameter formatRequiredDescription
usernamestringyesusername of user performing the request
passwordstringyespassword of user performing the request
trip_idintyesthe id of the trip to be edited
titlestringnotitle for the trip
descriptionstringnoDescription (story) for the trip
tipsstringnoTips for the trip
timestring in Standard Date FormatnoCreation timestamp for the trip
activitystringnoActivity for the trip. This parameter is matched case sensitively against the activities in the Activity List. If it does not exist there it will be listed as an "Other" activity.
activity_idintnoID for activity of the trip. Either activity or activity_id is required. See Activity List. Don't include or use 0 if no activity. If you want to specify an activity not on the list, put it in the "activity" parameter
gps_device_idintnoSee GpsDevice List
visibility_idintnoThe visibility of the trip on the server. See Visibility List
map_typeStringnoThe default map type when viewing the trip Map Type List



Success Response

<etTripEditResponse status="success">
  <tripID>${trip ID}</tripID>
</etTripEditResponse>

${trip ID}: integer ID of the trip created on the server

Error Reponse

<etTripEditResponse status="error">
  ${error reponse}
</etTripEditResponse>

${error reponse}: See format in Error Reponse Format

Personal tools