create
PUT /summit-log
PUT
/summit-log
Creates a summit log.
Authorizations
Parameters
Query Parameters
expand
string
Expand a foreign key column (https://pocketbase.io/docs/working-with-relations/#expanding-relations).
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
Example
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
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
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