Get generic entity grid with configurable associations
Changed onReturns a generic entity × entity grid with configurable association categories.
This endpoint allows you to specify:
- **column_association_category**: One or more association categories for the
context → column hop (e.g., causal gene-disease, correlated gene-disease)
- **row_association_category**: The association category for the column → row hop
- **row_grouping**: How to group rows (histopheno for body systems, or none)
- **group_columns_by_category**: Whether to sort columns by their source association
Example: To get a grid of diseases (causal + correlated) and their phenotypes for a gene:
```
GET /entity-grid/HGNC:4851?column_association_category=biolink:CausalGeneToDiseaseAssociation
&column_association_category=biolink:CorrelatedGeneToDiseaseAssociation
&row_association_category=biolink:DiseaseToPhenotypicFeatureAssociation
&group_columns_by_category=true
```
The response includes source_association_category on each column entity,
allowing the frontend to display different column groups.
Request
- Base URLhttps://monarchinitiative.org (the document declares no server; this is the origin it was published from)
- URLhttps://monarchinitiative.org/v3/api/entity-grid/{context_id}
- Authnone declared
Path parameters
Context entity ID (gene, disease, etc.)
Query parameters
Association category/categories for context → column
Association category/categories for column → row
Row grouping options.
How to group rows
Sort columns by association category
Only include direct associations (not via closure)
Maximum number of column entities
Response
Successful Response
Changes
- breaking
removed the enum value
biolink:ChemicalOrDrugOrTreatmentToDiseaseOrPhenotypicFeatureAssociationfrom the propertyitems/of thequeryrequest parametercolumn_association_category - breaking
removed the enum value
biolink:ChemicalOrDrugOrTreatmentToDiseaseOrPhenotypicFeatureAssociationfrom the propertyitems/of thequeryrequest parameterrow_association_category - info
added the enum value
biolink:ChemicalOrDrugOrTreatmentAdverseEventAssociationto the propertyitems/of thequeryrequest parametercolumn_association_category - info
added the enum value
biolink:ChemicalOrDrugOrTreatmentAdverseEventAssociationto the propertyitems/of thequeryrequest parameterrow_association_category
- breaking