Skip to content

file

POST
/summit-log/{id}/file

Uploads or removes photos, uploads GPS data file for a summit log.

Authorizations

Parameters

Path Parameters

id
required
string

Summit Log Id

Example
4yql7587j64qdo5

Request Body

object
photos

List of image files to add. Allowed file types: PNG, JPG, WEBP, SVG

string format: binary
[
""
]
photos-

List of file names to delete.

Array<string>
gpx

File containing GPS track data. Allowed file types: GPX, JSON, FIT, KML

string format: binary
<= 1 characters
file:///Users/christianbeutel/Downloads/2021-10-24_536064034_Essen-Mitte.nach.Bochum-Hauptbahnhof.gpx

Responses

200

object
author
required
string
collectionId
required
string
collectionName
required
string
created
required
string
date
required
string
distance
required
number
duration
required
number
elevation_gain
required
number
elevation_loss
required
number
gpx
required
string
id
required
string
photos
required
Array<string>
text
required
string
updated
required
string
Examples

Success

{
"author": "3mugf953w4a9fg5",
"collectionId": "dd2l9a4vxpy2ni8",
"collectionName": "summit_logs",
"created": "2025-01-03 09:56:37.620Z",
"date": "2025-01-02 00:00:00.000Z",
"distance": 36983010.25256769,
"duration": 68163654.92949024,
"elevation_gain": 44389248.880456366,
"elevation_loss": 6494274.720874871,
"gpx": "2021_11_14_564807964_dusseldorf_angermund_nach_n4R1NcyDsY.Neuss-Hamm.gpx",
"id": "58iuq9j30qbbwmq",
"photos": [
"23xxesym0e9w18z2904frnpgy7_CTPOstkHAC.jpg"
],
"text": "et magna veniam anim cillum",
"updated": "2025-01-03 10:22:09.893Z"
}

400

object
message
required
string
detail
required
Array<object>
object
code
string
minimum
integer
type
string
inclusive
boolean
exact
boolean
message
string
path
Array<string>
Examples

Exception

{
"message": "invalid_params",
"detail": [
{
"code": "too_small",
"minimum": 15,
"type": "string",
"inclusive": true,
"exact": true,
"message": "String must contain exactly 15 character(s)",
"path": [
"id"
]
}
]
}

404

object
message
required
string
detail
required
object
code
required
integer
message
required
string
data
required
object
Examples

Exception

{
"message": "The requested resource wasn't found.",
"detail": {
"code": 404,
"message": "The requested resource wasn't found.",
"data": {}
}
}