Skip to content

update

POST
/summit-log/{id}

Updates a summit log.

Authorizations

Parameters

Path Parameters

id
required
string
>= 15 characters <= 15 characters

Summit Log Id

Example
6vcudpc4wgc0ckk

Query Parameters

requestKey
string

Unique request key. Prevents auto cancel when sending multiple requests.

Request Body

object
date

Date of the summit log

string format: date
text

Description of the summit log

string
distance

Distance in meters

number
elevation_gain

Elevation gain in vertical meters

number
elevation_loss

Elevation loss in vertical meters

number
duration

Duration in seconds

number
Example
{
"date": "2025-12-12",
"text": "Updated by wanderer API",
"distance": 32,
"elevation_gain": 45,
"elevation_loss": 21,
"duration": 29,
}

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": "",
"id": "58iuq9j30qbbwmq",
"photos": [],
"text": "et magna veniam anim cillum",
"updated": "2025-01-03 10:11:22.553Z"
}

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": {}
}
}