create
PUT /comment
PUT
/comment
Creates a comment.
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
author
required
string
text
required
string
trail
required
string
Example
Responses
200
object
author
required
string
collectionId
required
string
collectionName
required
string
created
required
string
expand
required
object
author
required
object
avatar
required
string
bio
required
string
collectionId
required
string
collectionName
required
string
created
required
string
emailVisibility
required
boolean
id
required
string
token
required
string
updated
required
string
username
required
string
verified
required
boolean
trail
required
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
integer
elevation_gain
required
integer
elevation_loss
required
integer
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>
id
required
string
rating
required
integer
text
required
string
trail
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
string
expected
string
received
string
path
Array<string>
message
string
Examples
Exception