Appearance
Download a model
About 187 wordsLess than 1 minute
apiModels
2026-10-10
Returns the schema of one analysis model as an XML file named after its display name. If the model also has annotations, both files come back in a zip.
| Method and path | GET /plugin/datafor-modeler/api/datasource/analysis/{catalog}/download |
| Permission | Read on the model |
| Content type | none |
The schema is returned in the current table-link format, as Upgrade a model would produce. To get the file exactly as stored, call GET /plugin/datafor-modeler/api/datasource/analysis/catalog/{catalog}?raw=true.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
catalog | path | string | Yes | Model name (not the display name), URL-encoded. |
Example
curl -u admin:password \
"http://localhost:28080/datafor/plugin/datafor-modeler/api/datasource/analysis/SalesModel/download" \
-o SalesModel.xmlOn success the body is the XML (application/xml) or a zip (application/zip).
Errors
| HTTP status | When |
|---|---|
401 | Access to the model was denied. |
400 or 500 | The model does not exist or could not be read. |
Related: Download models, Add or modify a model