POST /api/v1/finngen/endpoints/{name}/prs
POST/api/v1/finngen/endpoints/:name/prs
Phase 17 GENOMICS-07 D-10/D-15 — dispatches a Darkstar finngen.prs.compute run against a (source × PGS Catalog score × cohort) tuple. Returns 202 + run envelope. All precondition checks live in {@see PrsDispatchService::dispatch}; controller just unpacks the validated FormRequest and forwards to the service.
422 paths (via abort() inside PrsDispatchService):
- score_id not ingested in vocab.pgs_scores
- source_key does not resolve to an enabled Source
- source has no variant_index (Phase 14 prerequisite missing)
- cohort has 0 rows for the resolved cohort_definition_id
- no FinnGenEndpointGeneration when cohort_definition_id is omitted
Route middleware: auth:sanctum, permission:finngen.prs.compute, finngen.idempotency, throttle:10,1.
Request
Responses
- 401