Skip to content

create

PUT
/summit-log

Creates a summit log.

Authorizations

Parameters

Query Parameters

requestKey
string

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

Request Body

object
date
required

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
author
required

User Id

string
>= 15 characters <= 15 characters
Example
{
"date": "2025-01-01",
"text": "Created by wanderer API",
"distance": 12,
"elevation_gain": 34,
"elevation_loss": 42,
"duration": 21,
"author": "3mugf953w4a9fg5"
}

Responses

200

object
author
required
string
collectionId
required
string
collectionName
required
string
created
required
string
date
required
string
distance
required
integer
duration
required
integer
elevation_gain
required
integer
elevation_loss
required
integer
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-01 00:00:00.000Z",
"distance": 12,
"duration": 21,
"elevation_gain": 34,
"elevation_loss": 42,
"gpx": "",
"id": "58iuq9j30qbbwmq",
"photos": [],
"text": "Created by wanderer API",
"updated": "2025-01-03 09:56:37.620Z"
}

400

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

Exception

{
"message": "Failed to create record.",
"detail": {
"code": 400,
"message": "Failed to create record.",
"data": {
"author": {
"code": "validation_missing_rel_records",
"message": "Failed to find all relation records with the provided ids."
}
}
}
}

x-400:Invalid Params

object
message
required
string
detail
required
Array<object>
object
code
required
string
validation
string
message
required
string
path
required
Array<string>
Examples

Exception

{
"message": "invalid_params",
"detail": [
{
"code": "invalid_string",
"validation": "date",
"message": "Invalid date",
"path": [
"date"
]
},
{
"code": "custom",
"message": "invalid-date",
"path": [
"date"
]
}
]
}