Skip to content

Register a namespace

POST
/organizations/{orgId}/catalog/namespaces
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.

orgId
required
string format: uuid
Media typeapplication/json
object
iriPrefix
required

An absolute http or https IRI prefix that ends in /, with no user name, query or fragment.

string

Example

https://ns.example.nl/begrippen/

Created

Media typeapplication/json
object
id
required
string format: uuid
iriPrefix
required

The prefix as stored: scheme and host in lowercase, the path as registered, ending in /.

string
isDefault
required

Exactly one namespace of an organization is the default.

boolean
createdAt
required
string format: date-time
coveredByActiveDomain
required

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.

boolean
collisions
required

Address collisions under this namespace, from the latest release of each model. Empty when there are none. Always empty on the namespace just registered.

Array<object>

An address that two authored IRIs of one model share, so only the first is served.

object
modelId
required
string format: uuid
elementId

The element that kept the address. Absent for the model’s canonical IRI.

string format: uuid
authoredIri
required

The IRI that kept the address, as authored.

string
shadowed
required

The later IRIs of the same model that normalize to the same address.

Array<object>
object
authoredIri
required
string
elementId
required
string format: uuid
sharedIris
required

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.

Array<object>

An IRI several models of the organization hold.

object
iri
required

The normalized IRI key the models share.

string
modelIds
required

Every model holding it at its latest release, sorted.

Array<string>
servedModelId

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.

string format: uuid
pathOverlaps
required

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.

Array<object>

A relative path this namespace and another one both publish a document at.

object
relativePath
required

The path below both prefixes; a hash vocabulary counts by its document.

string
otherNamespaceId
required
string format: uuid
served
required

Whether this namespace’s document is the one a request reaches: the default namespace’s does, then the oldest’s.

boolean

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.

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