Skip to content

Update summit log with file upload

POST
/api/v1/summit-log/form/{id}
curl --request POST \
--url https://example.com/api/v1/summit-log/form/example \
--header 'Content-Type: multipart/form-data' \
--form date=2026-04-15 \
--form text=example \
--form gpx=example \
--form distance=1 \
--form elevation_gain=1 \
--form elevation_loss=1 \
--form duration=1 \
--form photos=example \
--form photos-=example \
--form 'photos+=example'

Updates a summit log with file upload (photos/GPX) and date normalization. The record is addressed by the id path parameter; an id in the body is optional and must match it (400 id_mismatch otherwise). A gpx part replaces the track: the file is converted to GPX (FIT, KML, KMZ and TCX are accepted) and distance, duration, elevation_gain and elevation_loss are derived from it unless the request sets them explicitly.

id
required
string
Media typemultipart/form-data
object
date
string format: date
text
string
gpx
string
distance
number
elevation_gain
number
elevation_loss
number
duration
number
photos
Array<string>
photos-

Remove photo by name

string
photos+

Add photo by name

string

Summit log updated

Media typeapplication/json
object
id
required

Summit log ID (15 chars)

string
date
required
string format: date
text
string
author
required

Author user ID (15 chars)

string
trail

Associated trail ID

string
gpx
string
distance
number
elevation_gain
number
elevation_loss
number
duration
number
photos
Array<string>
created
string format: date-time
updated
string format: date-time
Examplegenerated
{
"id": "example",
"date": "2026-04-15",
"text": "example",
"author": "example",
"trail": "example",
"gpx": "example",
"distance": 1,
"elevation_gain": 1,
"elevation_loss": 1,
"duration": 1,
"photos": [
"example"
],
"created": "2026-04-15T12:00:00Z",
"updated": "2026-04-15T12:00:00Z"
}

Bad Request (invalid id, body id differs from the path, or the gpx file cannot be parsed)

Unauthorized

Not Found

Internal Server Error