file
POST /trail/{id}/file
POST
/trail/{id}/file
Uploads or removes photos, uploads GPS data file for a trail.
Authorizations
Parameters
Path Parameters
id
required
string
Trail Id
Example
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
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
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
404
object
message
required
string
detail
required
object
code
required
integer
message
required
string
data
required
object
Examples
Exception