Skip to content

Namespaces

8 calls. Every request needs the Authorization header: see the overview.

GET /namespaces

Every namespace of the tenant.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Response: Namespace[] (200)

curl -X GET "https://api.maitento.com/namespaces" \
-H "Authorization: $MAITENTO_AUTH"
POST /namespaces

Creates a namespace.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Request body: NamespaceCreateOrUpdateRequest

FieldTypeRequiredDescription
namestringyesThe namespace’s name, 1 to 200 characters, unique within the tenant.

Response: Namespace (200)

curl -X POST "https://api.maitento.com/namespaces" \
-H "Authorization: $MAITENTO_AUTH" \
-H "Content-Type: application/json" \
-d '{"name":"..."}'
DELETE /namespaces/by-id/{id}

Deletes an empty namespace (a 400 api:namespace:delete:not-empty lists what remains).

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Response: no body (204)

curl -X DELETE "https://api.maitento.com/namespaces/by-id/<id>" \
-H "Authorization: $MAITENTO_AUTH"
GET /namespaces/by-id/{id}

The namespace with this id. Throws NotFoundError when there is none.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Response: Namespace (200)

curl -X GET "https://api.maitento.com/namespaces/by-id/<id>" \
-H "Authorization: $MAITENTO_AUTH"
PUT /namespaces/by-id/{id}

Renames a namespace.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Request body: NamespaceCreateOrUpdateRequest

FieldTypeRequiredDescription
namestringyesThe namespace’s name, 1 to 200 characters, unique within the tenant.

Response: Namespace (200)

curl -X PUT "https://api.maitento.com/namespaces/by-id/<id>" \
-H "Authorization: $MAITENTO_AUTH" \
-H "Content-Type: application/json" \
-d '{"name":"..."}'
GET /namespaces/by-id/{id}/web-access

The namespace’s web-access settings (its default web-download partition).

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Response: WebAccessSettings (200)

curl -X GET "https://api.maitento.com/namespaces/by-id/<id>/web-access" \
-H "Authorization: $MAITENTO_AUTH"
PUT /namespaces/by-id/{id}/web-access

Replaces the namespace’s web-access settings (Tenant.Admin).

Who can call it: Tenant admins only, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Request body: WebAccessSettingsInput

FieldTypeRequiredDescription
defaultWebDownloadPartitionIduuid | nullThe temporary partition web downloads go to by default. Null: none is set here (sending null clears it).

Response: WebAccessSettings (200)

curl -X PUT "https://api.maitento.com/namespaces/by-id/<id>/web-access" \
-H "Authorization: $MAITENTO_AUTH" \
-H "Content-Type: application/json" \
-d '{"defaultWebDownloadPartitionId":"..."}'
GET /namespaces/by-name/{name}

The namespace with this NAME. Throws NotFoundError when there is none.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
namestringyes

Response: Namespace (200)

curl -X GET "https://api.maitento.com/namespaces/by-name/<name>" \
-H "Authorization: $MAITENTO_AUTH"