Skip to content

List the models a new profile can be based on

GET
/metamodel-extensions/{extensionId}/profile-base-models
curl --request GET \
--url https://api.modeldesk.io/metamodel-extensions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/profile-base-models \
--header 'Authorization: Bearer <token>'

List the models a new application profile of the given profile family may be based on, each with the specification elements that would become its profileOf targets. The family extension fixes the declared base metamodel; the models on offer are those the caller may read whose metamodel sits in that base’s family tower, plus application profiles of the same family (which a profile of a profile builds on). Scanning is bounded — see the bounded and scannedModels fields of the response.

extensionId
required
string format: uuid

OK

Media typeapplication/json

The models a new application profile of one profile family may be based on, each with the specification elements that would become its profileOf targets. Computed per request, never persisted.

object
familyExtensionId
required

The family extension the listing was computed for.

string format: uuid
profilesMetamodel
required

The base metamodel the family declares. Null when it declares none, in which case nothing constrains a base and items is empty.

string | null format: uuid
items
required

The admissible base models, most recently modified first.

Array<object>

One admissible base model for a new application profile.

object
modelId
required
string format: uuid
name
required
string
metamodelId
required
string format: uuid
metamodelName
required
string
applicationProfile
required

True for the profile-of-profile case — a base that is itself an application profile of the same family, rather than a model of the family’s declared metamodel or one of its tower members.

boolean
specifications
required

The base model’s specification elements — what profileOf would point at. A model hosting several is listed once with all of them.

Array<object>

A specification element of a base model.

object
elementId
required
string format: uuid
elementType
required
string
name
string
ownedTermCount
required

How many profilable terms this specification transitively owns — the denominator the base’s coverage will be counted over. Two specifications in one document are often near-indistinguishable by name (an RDF vocabulary offers both the Document it was loaded from and the Ontology that document declares) and this is what separates them. Zero is a real and informative answer: such a specification scopes nothing, and its coverage falls back to the whole document.

integer
consideredModels
required

How many models the metamodel-level admission accepted.

integer
scannedModels
required

How many of those were actually loaded and scanned for specifications.

integer
bounded
required

Whether scannedModels fell short of consideredModels because the configured scan limit was reached.

boolean
unreadableModelIds
required

Admitted models whose content could not be loaded, so their specifications are unknown — reported rather than silently dropped.

Array<string>

Example generated

{
"familyExtensionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"profilesMetamodel": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"items": [
{
"modelId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"metamodelId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"metamodelName": "example",
"applicationProfile": true,
"specifications": [
{
"elementId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"elementType": "example",
"name": "example",
"ownedTermCount": 1
}
]
}
],
"consideredModels": 1,
"scannedModels": 1,
"bounded": true,
"unreadableModelIds": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
]
}

Not found — no such extension, or it does not extend the application-profile metamodel and is therefore not a profile family

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"
}
]
}

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"
}
]
}