List imports
const url = 'https://api.modeldesk.io/imports';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.modeldesk.io/imports \ --header 'Authorization: Bearer <token>'List model imports. An import into a model is listed only for a caller who may also read that model now.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”OK
object
object
object
True when a model can be created on the metamodel only together with an extension that concretizes it.
Absent on an ordinary information metamodel. DATA_SCHEMA marks one whose models the platform derives for datasets: it is never offered where models are created, imported or picked.
The display name of the tower this metamodel is the root of. Authored on the root only. Presentation data: it changes no resolution, validation or dependency behavior.
One line describing the tower, authored on its root beside towerName.
The metamodel’s task line, what a user makes with a model of it.
True when the metamodel exists only for other metamodels to build on, so no one creates or imports a model on it directly. Absent means false.
The language tag of the language the metamodel’s standard is written in, in lower case. Authored on a base metamodel only; omitted when the standard declares none.
The version of the standard the metamodel implements. A release is named after it, or 1.0.0 when the metamodel declares none.
The declared base metamodel that application profiles of this metamodel are built to profile, propagated from a family extension’s binding. Absent on a base metamodel and on any metamodel carrying no family binding.
True when the metamodel is an add-on: a model adds its profiles on top of its own metamodel, so no one creates or imports a model on it directly. Absent means false.
The release of the metamodel the import reads into. Absent only on imports older than version pinning.
Where an import reads its file from.
A file sent with the request.
object
The file’s name, which some loaders read the format from.
The file’s bytes.
A file the server fetches.
object
object
USER is a person, MACHINE a service account, and SYSTEM the platform itself, whose commits (metamodel seeding and re-pins) the commit log hides unless asked for them.
The display name, where one is known: a person’s from their account, a service account’s as stored with what it wrote. Left out for the platform and for a person whose account holds no name.
Who inside the owning organization may reach a model. Optional on creation and update: a creation that omits it takes the owner organization’s default access mode (falling back to SHARED).
object
The model a completed import created.
The existing model the import goes into. Absent for an import that creates a model.
The branch of targetModelId the import merges into. Absent when the import names no target.
The model whose unresolved references sent the user here, when the import was started from a references panel. Completing such an import adds the imported model to this one as a dependency, and the import page uses it to offer the resolve and the way back. Absent for an import nobody was referred from.
What completing an import did about the model that sent the user to it. Exactly one field is set. The dependency answers rules the import never had to satisfy — the referring model may admit no dependency on this metamodel, or belong to another owner — and failing the completion over one of them would throw away a model the user has already reviewed and named, so the import completes either way and records which happened.
object
The dependency created on the referring model. Absent when none was.
Why no dependency was created. Absent when one was.
Example
{ "items": [ { "metamodel": { "kind": "DATA_SCHEMA" }, "source": { "type": "upload" }, "status": "INITIALIZED", "owner": { "type": "USER" }, "accessMode": "SHARED" } ]}default
Section titled “default”Error
An RFC 9457 problem document, always sent as application/problem+json.
object
Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.
The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.
Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}