Skip to main content
POST
/
api
/
finds
Create a new find
curl --request POST \
  --url https://serengo.zias.be/api/finds \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "locationId": "<string>",
  "title": "<string>",
  "description": "<string>",
  "category": "<string>",
  "isPublic": true,
  "media": [
    {
      "type": "<string>",
      "url": "<string>",
      "thumbnailUrl": "<string>"
    }
  ]
}
'
{
  "id": "<string>",
  "title": "<string>",
  "description": "<string>",
  "category": "<string>",
  "isPublic": true,
  "locationId": "<string>",
  "userId": "<string>",
  "media": [
    {
      "id": "<string>",
      "type": "image",
      "url": "<string>",
      "thumbnailUrl": "<string>"
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "rating": 123,
  "likeCount": 123,
  "commentCount": 123,
  "isLiked": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json
locationId
string
required
title
string
required
Maximum string length: 100
description
string
Maximum string length: 500
category
string
isPublic
boolean
media
object[]

Response

200 - application/json

Find created

id
string
title
string
description
string | null
category
string | null
isPublic
boolean
locationId
string
userId
string
media
object[]
createdAt
string<date-time>
rating
number
likeCount
integer
commentCount
integer
isLiked
boolean