Namespace API
Namespace endpoints manage the hierarchical organization of tables and views in an Iceberg catalog.List Namespaces
List all namespaces at a certain level, optionally starting from a parent namespace.Path Parameters
Optional prefix for multi-tenant deployments
Query Parameters
An optional namespace to list underneath. If not provided, all top-level namespaces are listed.For multi-part namespaces, parts must be separated by the namespace separator (default:
%1F).Example: accounting%1FtaxPagination token from a previous response
Maximum number of namespaces to return
Response
List of namespace identifiers
Token for fetching the next page of results. Null if no more results.
Examples
List top-level namespaces:Create Namespace
Create a new namespace with optional properties.Path Parameters
Optional prefix for multi-tenant deployments
Headers
UUIDv7 for idempotent request handling
Request Body
Array of strings representing the namespace to createExample:
["accounting", "tax"]String-to-string map of namespace propertiesExample:
{"owner": "finance-team"}Response
The created namespace identifier
Properties of the created namespace (may include server-added properties)
Examples
Load Namespace Metadata
Retrieve metadata properties for a namespace.Path Parameters
Optional prefix for multi-tenant deployments
Namespace identifier. Multi-part namespaces use separator (default:
%1F).Examples:accounting- Single-part namespaceaccounting%1Ftax- Multi-part namespace
Response
The namespace identifier
All stored metadata properties for the namespace
Example
Check Namespace Exists
Check if a namespace exists without retrieving its metadata.Path Parameters
Optional prefix for multi-tenant deployments
Namespace identifier
Response
No response body. Status code indicates existence.Example
Update Namespace Properties
Set and/or remove properties on a namespace.Path Parameters
Optional prefix for multi-tenant deployments
Namespace identifier
Headers
UUIDv7 for idempotent request handling
Request Body
List of property keys to remove
Map of property keys and values to set or update
Response
List of property keys that were updated
List of property keys that were removed
List of properties requested for removal that were not found
Example
Properties not in the request are not modified. A key cannot appear in both
removals and updates.Drop Namespace
Delete a namespace from the catalog. The namespace must be empty.Path Parameters
Optional prefix for multi-tenant deployments
Namespace identifier to delete
Headers
UUIDv7 for idempotent request handling
Response
No response body on success.Example
Status Codes
Success
200 OK- Request successful with response body204 No Content- Request successful without response body
Client Errors
400 Bad Request- Invalid request format401 Unauthorized- Authentication required403 Forbidden- Not authorized404 Not Found- Namespace does not exist406 Not Acceptable- Server doesn’t support namespace properties409 Conflict- Namespace already exists or not empty419 Authentication Timeout- Authentication expired422 Unprocessable Entity- Property key in both removals and updates
Server Errors
503 Service Unavailable- Service temporarily unavailable5XX- Other server errors
Common Use Cases
Create Hierarchical Namespace
List All Namespaces in Hierarchy
Manage Namespace Lifecycle
Related
- Table Endpoints - Manage tables within namespaces
- View Endpoints - Manage views within namespaces
- REST API Overview - API overview