Skip to main content
POST
/
api
/
v1
/
flocks
Create a new flock
curl --request POST \
  --url http://localhost:3000/api/v1/flocks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "buildingId": "<string>",
  "name": "<string>",
  "capacity": "<string>",
  "startDate": "<string>",
  "metadata": "<string>"
}
'
{
  "message": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

JWT obtained from POST /api/v1/auth/login.

Body

application/json
buildingId
string

buildingId — see API source for exact type.

name
string

name — see API source for exact type.

capacity
string

capacity — see API source for exact type.

startDate
string

startDate — see API source for exact type.

metadata
string

metadata — see API source for exact type.

Response

Created

message
string
data
object