List the models a new profile can be based on
const url = 'https://api.modeldesk.io/metamodel-extensions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/profile-base-models';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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”OK
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
The family extension the listing was computed for.
The base metamodel the family declares. Null when it declares none, in which case nothing constrains a base and items is empty.
The admissible base models, most recently modified first.
One admissible base model for a new application profile.
object
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.
The base model’s specification elements — what profileOf would point at. A model hosting several is listed once with all of them.
A specification element of a base model.
object
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.
How many models the metamodel-level admission accepted.
How many of those were actually loaded and scanned for specifications.
Whether scannedModels fell short of consideredModels because the configured scan limit was reached.
Admitted models whose content could not be loaded, so their specifications are unknown — reported rather than silently dropped.
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
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" } ]}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" } ]}