Skip to main content
POST
/
api
/
finds
/
{findId}
/
comments
Add a comment to a find
curl --request POST \
  --url https://serengo.zias.be/api/finds/{findId}/comments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>"
}
'
{
  "id": "<string>",
  "content": "<string>",
  "userId": "<string>",
  "findId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "user": {
    "id": "<string>",
    "username": "<string>",
    "profilePicture": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

findId
string
required

Body

application/json
content
string
required
Maximum string length: 500

Response

200 - application/json

Comment added

id
string
content
string
userId
string
findId
string
createdAt
string<date-time>
user
object