Register a namespace
const url = 'https://api.modeldesk.io/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/catalog/namespaces';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"iriPrefix":"https://ns.example.nl/begrippen/"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.modeldesk.io/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/catalog/namespaces \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "iriPrefix": "https://ns.example.nl/begrippen/" }'Registers an absolute http or https prefix that ends in /, with a host, and with no user name, query or fragment. A prefix with a # is refused: register the document path that encloses the vocabulary. The scheme and host are stored in lowercase and the path as given. A prefix is unique across organizations and may not nest in, or contain, another organization’s prefix (http and https count as the same, and so do the default ports); an organization may hold nested prefixes of its own. The first namespace an organization registers is its default. Requires an administrator of the organization.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
An absolute http or https IRI prefix that ends in /, with no user name, query or fragment.
Example
https://ns.example.nl/begrippen/Responses
Section titled “Responses”Created
object
The prefix as stored: scheme and host in lowercase, the path as registered, ending in /.
Exactly one namespace of an organization is the default.
Whether the namespace’s host is one of the organization’s ACTIVE domains, whatever the hosting setting. Under custom hosting a covered namespace is served at its own IRIs; one that is not covered has no row there and its elements keep their UUID addresses, which the Catalog tab warns about.
Address collisions under this namespace, from the latest release of each model. Empty when there are none. Always empty on the namespace just registered.
An address that two authored IRIs of one model share, so only the first is served.
object
The element that kept the address. Absent for the model’s canonical IRI.
The IRI that kept the address, as authored.
The later IRIs of the same model that normalize to the same address.
object
IRIs under this namespace that several models of the organization hold at their latest release, each with the model a request reaches. Sorted by IRI; at most 200 per organization. Empty when none is shared, and always empty on the namespace just registered.
An IRI several models of the organization hold.
object
The normalized IRI key the models share.
Every model holding it at its latest release, sorted.
The model a request for the IRI is answered from: the most recently released among the publicly visible holders. Absent when no holder is visible, so the IRI resolves to nothing.
Relative paths this namespace and another namespace of the organization both publish a document at, so one request path names both. One entry per other namespace and path, sorted by path; at most 200 paths per organization. Empty when none overlaps, and always empty on the namespace just registered.
A relative path this namespace and another one both publish a document at.
object
The path below both prefixes; a hash vocabulary counts by its document.
Whether this namespace’s document is the one a request reaches: the default namespace’s does, then the oldest’s.
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "iriPrefix": "example", "isDefault": true, "createdAt": "2026-04-15T12:00:00Z", "coveredByActiveDomain": true, "collisions": [ { "modelId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "elementId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "authoredIri": "example", "shadowed": [ { "authoredIri": "example", "elementId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ] } ], "sharedIris": [ { "iri": "example", "modelIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "servedModelId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ], "pathOverlaps": [ { "relativePath": "example", "otherNamespaceId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "served": true } ]}The caller is not an administrator of the organization.
No such organization.
The prefix is malformed, is already registered, or is held by or overlaps another organization’s. violations names the iriPrefix field.
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" } ]}