Skip to main content

Queens

The /api/queens endpoints let you manage your breeding queens (F0) and their daughters (F1), as well as access pedigrees and reference data.

F0 — Breeding Queens

MethodRouteDescription
GET/api/queens/f0Paginated list (?limit, ?offset, ?search, ?race, ?year)
POST/api/queens/f0Create an F0 queen
GET/api/queens/f0/[id]Queen detail
PUT/api/queens/f0/[id]Update a queen
DELETE/api/queens/f0/[id]Delete a queen
GET/api/queens/f0/lookupSearch by external_id
POST/api/queens/f0/bulkBulk import (max 500)
GET/api/queens/f0/[id]/pedigreePedigree tree (?depth=3|5|7)
GET/api/queens/f0/[id]/offspring-statsF1 offspring statistics

F1 — Daughters

MethodRouteDescription
GET/api/queens/f1List F1 daughters
POST/api/queens/f1Create an F1 daughter (mother_id required)
GET/api/queens/f1/[id]F1 detail
PUT/api/queens/f1/[id]Update an F1
DELETE/api/queens/f1/[id]Delete an F1

F0 Fields

FieldTypeRequiredDescription
queen_namestringYesQueen name
birth_datedateNoDate of birth
racestringNoRace (Buckfast, Carnica, Mellifera...)
sdi_codeintegerNo1 = SDI, 2 = MDI
dam_external_idstringNoMother's external identifier
drone_sire_idstringNoDrone sire group identifier
life_statusstringNotesting, production, sold, dead
external_idstringNoExternal identifier (Zuchtbuchnummer, etc.)

Pedigree

The pedigree endpoint returns the recursive pedigree tree for a queen. The depth parameter controls the number of generations (3, 5, or 7).

GET /api/queens/f0/{id}/pedigree?depth=5

Tree nodes include queen data, parents, and grandparents, with automatic resolution from the unified queens_f0 table (personal queens + public reference queens with owner_id IS NULL).

Reference (BeePass Index)

MethodRouteDescription
GET/api/queens/reference/[id]Reference queen detail
GET/api/queens/reference/[id]/pedigreeReference queen pedigree
GET/api/queens/reference/breedersBreeders aggregated by country
GET/api/queens/reference/breeders/[code]Queens for a specific breeder
Unified table

Since ARCHI-02, all queens (personal and reference) are stored in the single queens_f0 table. Reference queens have owner_id IS NULL and are populated by admin imports. All queens are public and visible to all authenticated users in the BeePass Index.


See also: Evaluations | EBV | Export