GET ContentService/exporter/diagram/{identifier}.{ext}
Operation ID: diagramImage_1
Auth: unknown
Description
This method accepts identifiers for <a href="/content/schema/Event" target="_blank">Event class</a> instances.<br/>When a diagrammed pathway is provided, the diagram is exported to the specified format.<br/>When a subpathway is provided, the diagram for the parent is exported and the events that are part of the subpathways are selected.<br/>When a reaction is provided, the diagram containing the reaction is exported and the reaction is selected.<br/><br/>Find out more about this method <a href="/dev/content-service/diagram-exporter" target="_blank">here</a>
Parameters (16)
(string, query, optional)
Analysis Color Profile
Constraints: {'enum': ['Standard', 'Strosobar, Copper%20Plus']}
(string, query, optional)
Diagram Color Profile
Constraints: {'enum': ['Modern', 'Standard']}
(boolean, query, optional, default: True)
Defines whether textbook-like illustration are taken into account
(integer, query, optional)
Expression column. When the token is associated to an expression analysis, this parameter allows specifying the expression column for the overlay
(string, path, required)
File extension (defines the image format)
Constraints: {'enum': ['png', 'jpg', 'jpeg', 'svg', 'gif']}
(string, query, optional)
Gene name, protein or chemical identifier or Reactome identifier used to flag elements in the diagram
(boolean, query, optional, default: True)
Defines whether to take into account interactors for the flagging
(string, path, required)
Event identifier (it can be a pathway with diagram, a subpathway or a reaction)
(boolean, query, optional, default: False)
Global parameter - If true, replace element ref to dbId by standard JSOG object {@ref}
(integer, query, optional, default: 15)
Defines the image margin between [0 - 20] (Default 15)
(integer, query, optional, default: 5)
Result image quality between [1 - 10]. It defines the quality of the final image (Default 5)
(string, query, optional, default: TOTAL)
The <a href="/dev/analysis" target="_blank">analysis</a> resource for which the results will be overlaid on top of the given pathways overview
(array, query, optional)
Highlight element(s) selection in the diagram. CSV line.
(boolean, query, optional, default: True)
Sets whether the name of the pathway is shown below
(string, query, optional)
The <a href="/dev/analysis" target="_blank">analysis</a> token with the results to be overlaid on top of the given diagram
(string, query, optional, default: flatten)
Global parameter - Customise the view to be more concise and/or aggregate relationships
Constraints: {'enum': ['flatten', 'nested', 'nested-aggregated']}
Examples (1)
| Title | Type | URL | Action |
|---|---|---|---|
| Exports a given pathway diagram to the specified image format (png, jpg, jpeg, svg, gif) | openapi-spec |
https://reactome.org/ContentService/exporter/diagram/R-HSA-177929.png?quality=5&title=True&margin=15&ehld=True&diagramProfile=Modern&analysisProfile=Standard |
Probe History
Status Codes
| Time | Status | Latency | Size |
|---|---|---|---|
| 2026-03-23 09:02:28.510214 | 406 | 331ms |