Skip to main content
PATCH
/
v1
/
namespaces
/
{namespace_identifier}
Partially Update Namespace
curl --request PATCH \
  --url https://api.mixpeek.com/v1/namespaces/{namespace_identifier} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "namespace_name": "spotify_playlists_prod",
  "description": "<string>",
  "payload_indexes": [
    {
      "field_name": "<string>",
      "type": "keyword",
      "field_schema": {
        "type": "text",
        "tokenizer": "word",
        "min_token_len": 2,
        "max_token_len": 15,
        "lowercase": true
      },
      "is_protected": false
    }
  ],
  "auto_create_indexes": true
}
'
{
  "namespace_name": "spotify_playlists_dev",
  "namespace_id": "<string>",
  "infrastructure": {
    "autoscaling_enabled": false,
    "compute_tier": "shared",
    "description": "Shared development namespace",
    "max_concurrent_jobs": 10,
    "qdrant_collection": "ns_dev",
    "ray_head_node_url": "ray://shared-cluster:10001"
  },
  "description": "<string>",
  "feature_extractors": [
    {
      "feature_extractor_name": "<string>",
      "version": "<string>",
      "feature_extractor_id": "<string>"
    }
  ],
  "payload_indexes": [
    {
      "field_name": "<string>",
      "type": "keyword",
      "field_schema": {
        "type": "text",
        "tokenizer": "word",
        "min_token_len": 2,
        "max_token_len": 15,
        "lowercase": true
      },
      "is_protected": false
    }
  ],
  "document_count": 123,
  "auto_create_indexes": false,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Headers

Authorization
string
required

REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.

Path Parameters

namespace_identifier
string
required

Either the namespace name or namespace ID

Body

application/json

Request schema for partially updating a namespace (PATCH operation).

namespace_name
string | null

Updated name for the namespace

Example:

"spotify_playlists_prod"

description
string | null

Updated description for the namespace

payload_indexes
PayloadIndexConfig · object[] | null

Updated list of custom payload indexes for this namespace.

auto_create_indexes
boolean | null

Enable automatic creation of Qdrant payload indexes based on filter usage patterns. When enabled, the system tracks which fields are most frequently filtered (>100 queries/24h) and automatically creates indexes to improve query performance. Background task runs every 6 hours. Expected performance improvement: 50-90% latency reduction for filtered queries. Default: False.

Example:

true

Response

Successful Response

Namespace model.

namespace_name
string
required

Name of the namespace

Example:

"spotify_playlists_dev"

namespace_id
string

Unique identifier for the namespace

infrastructure
NamespaceInfrastructure · object

Infrastructure configuration for the namespace (Ray, Qdrant).

Example:
{
"autoscaling_enabled": false,
"compute_tier": "shared",
"description": "Shared development namespace",
"max_concurrent_jobs": 10,
"qdrant_collection": "ns_dev",
"ray_head_node_url": "ray://shared-cluster:10001"
}
description
string | null

Description of the namespace

feature_extractors
BaseFeatureExtractorModel · object[]

List of feature extractors configured for this namespace

payload_indexes
PayloadIndexConfig · object[] | null

Custom payload indexes configured for this namespace

document_count
integer | null

Total number of documents in this namespace (from Qdrant collection)

auto_create_indexes
boolean
default:false

Enable automatic creation of Qdrant payload indexes based on filter usage patterns. When enabled, the system tracks which fields are most frequently filtered (>100 queries/24h) and automatically creates indexes to improve query performance. Background task runs every 6 hours. Expected performance improvement: 50-90% latency reduction for filtered queries.

created_at
string<date-time> | null

When the namespace was created

updated_at
string<date-time> | null

When the namespace was last updated