Skip to main content
POST
/
api
/
v1
/
flocks
/
{flockId}
/
cycles
Create a new cycle Request body: { "year": 2025, "n": 1 }
curl --request POST \
  --url http://localhost:3000/api/v1/flocks/{flockId}/cycles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "year": "<string>",
  "n": "<string>"
}
'
{
  "message": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

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

Path Parameters

flockId
string
required

flockId identifier

Body

application/json
year
string

year — see API source for exact type.

n
string

n — see API source for exact type.

Response

Created

message
string
data
object