Skip to content

List the types a dataset can be started from

GET
/data-entity-types
curl --request GET \
--url https://api.modeldesk.io/data-entity-types \
--header 'Authorization: Bearer <token>'

Lists the data entity types of every model the caller may read whose metamodel family has a data-schema binding: one item per type per model, with the releases of the model that declare it, latest first. Read from the compiled schemas of the releases; a release is compiled when it is cut, and one cut before that offers its types once its schema has been read. Abstract types and contained types (whose entries live inside another entry, without identity of their own) are listed and marked, so a client can say why it leaves them out. Every type the family’s binding read is listed whatever its metamodel’s datasetLevel says, that level being how often elements of the type are a value list.

modelId
string format: uuid

Only the types of this model; empty when the caller may not read it. Lists what the model’s working copy declares as well, each type saying whether it does (inWorkingCopy), and a type only the working copy declares with no releases. Compiles the model’s latest release first when nothing has compiled it yet, or when what was compiled is no longer what would be derived now, and derives its working head without storing it.

OK

Media typeapplication/json
object
items
Array<object>
object
modelId
required
string format: uuid
modelName
string
metamodelId

The backing model’s metamodel; an owner needs a seat on it.

string format: uuid
metamodelName
string
sourceElementId
required

The backing-model element the type was derived from; a dataset’s dataEntityTypeId.

string format: uuid
name

Language-mapped display name, as the latest declaring release states it, or the working copy for a type no release declares.

object
key
additional properties
string
description
object
key
additional properties
string
abstract

Entries of the type exist only through a subtype.

boolean
contained

The type is the target of a containment reference and identifies none of its entries itself, so its entries live inside another entry.

boolean
heldByPlatform

The type states that its entries are things the platform holds (models, model elements or datasets), as the latest declaring release states it. It has no dataset: creating one is refused, and a reference to it points at those things.

boolean
datasetLevel
required

How often elements of the type are a value list, as the latest release of the model’s metamodel declares it for the type’s element type. Every level is listed: the level orders the offer and decides the cards the editor shows, never whether a dataset of the type can be started.

string
Allowed values: ALWAYS SOMETIMES NEVER VALUE_DOMAIN
releases
required

The releases of the model that declare the type, latest first. Empty for a type only the working copy declares.

Array<object>
object
versionId
string format: uuid
name
string
createdAt

When the release was made, which orders a model’s releases where two types list different ones: a release name is authored text and says nothing about order.

string format: date-time
inWorkingCopy

Whether the model’s working copy declares the type. Read by the per-model list only; the list across every model reads releases alone and leaves this false.

boolean
workingCopyRead

Whether the types of the model’s working copy could be read, on a read of one model; absent from the read across every model. A working copy that could not be read lists none of its types, which is not the same as a working copy that declares none.

boolean
schemaFailures

On a read of one model, each version read (the latest release and the working copy) whose data schema could not be built, and why. Such a version offers none of its types, which is not the same as a version that declares none; the other versions’ types are listed all the same. A working copy at the latest release’s commit is listed under both versions, each failing for the same reason, since a client chooses each version on its own. Absent when every version read was built, and from the read across every model.

Array<object>
object
version
required

The release’s name, or @HEAD for the working copy.

string
reason
required

Why the schema could not be built, in words for the model’s author and without ids: where the model was refused, it names the element and the types involved; any other failure reads as a plain reason.

string
elementId

The backing-model element the reason is about, so a client can lead the author to it; absent when the reason names none, or names an element of another model, such as one of its dependencies.

string format: uuid

Example

{
"items": [
{
"datasetLevel": "ALWAYS"
}
]
}

Error

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

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.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

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.

string
violations

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.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}