Skip to content

update

POST
/trail/{id}

Authorizations

Parameters

Path Parameters

id
required
string

Trail Id

Request Body

object
name

Name of the trail

string
category

Category Id

string
>= 15 characters <= 15 characters
date

Date of the trail

string format: date
description

Description of the trail

string
difficulty

Difficulty of the trail

string
Allowed values: easy moderate hard
distance

Distance in meters

number
duration

Duration in seconds

number
elevation_gain

Elevation gain in vertical meters

number
elevation_loss

Elevation loss in vertical meters

number
lat

Latitude of the starting point

number
>= -90 <= 90
location

Nearest city/village

string
lon

Longitude of the starting point

number
>= -180 <= 180
public

Visible for everyone

boolean
thumbnail

Index of the photo that should be used as the thumbnail.

integer
Example
{
"name": "inventore est laboriosam",
"category": "7sqwezntokmbvdr",
"date": "2025-01-03T07:14:55.803Z",
"description": "At dolor deleniti architecto nulla nemo in perspiciatis. Iste iusto ex quidem sed modi. Ipsam unde doloribus aut. Molestias ducimus molestias soluta.",
"difficulty": "easy",
"distance": 71499916.19683264,
"duration": 87771408.86514412,
"elevation_gain": 67291819.86293587,
"elevation_loss": 76718134.08675973,
"lat": 85.23610854378416,
"location": "ex laborum",
"lon": -48.60959423486602,
"public": true,
"thumbnail": 0
}

Responses

200

object
author
required
string
category
required
string
collectionId
required
string
collectionName
required
string
created
required
string
date
required
string
description
required
string
difficulty
required
string
distance
required
number
duration
required
number
elevation_gain
required
number
elevation_loss
required
number
gpx
required
string
id
required
string
lat
required
number
location
required
string
lon
required
number
name
required
string
photos
required
Array<string>
public
required
boolean
summit_logs
required
Array<string>
thumbnail
required
integer
updated
required
string
waypoints
required
Array<string>
Examples

Success

{
"author": "3mugf953w4a9fg5",
"category": "7sqwezntokmbvdr",
"collectionId": "e864strfxo14pm4",
"collectionName": "trails",
"created": "2025-01-03 11:42:07.848Z",
"date": "2025-01-03 07:14:55.803Z",
"description": "At dolor deleniti architecto nulla nemo in perspiciatis. Iste iusto ex quidem sed modi. Ipsam unde doloribus aut. Molestias ducimus molestias soluta.",
"difficulty": "easy",
"distance": 71499916.19683264,
"duration": 87771408.86514412,
"elevation_gain": 67291819.86293587,
"elevation_loss": 76718134.08675973,
"gpx": "2021_11_14_564807964_dusseldorf_angermund_nach_ZpNsRB5SEW.Neuss-Hamm.gpx",
"id": "hfdmpa1n1ulyr64",
"lat": 85.23610854378416,
"location": "ex laborum",
"lon": -48.60959423486602,
"name": "inventore est laboriosam",
"photos": [],
"public": true,
"summit_logs": [
"3pagejfjt1cz4vr"
],
"thumbnail": 0,
"updated": "2025-01-03 11:48:41.963Z",
"waypoints": []
}

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>

404

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