PATCH
/
v1
/
namespace
/
{namespaceId}
curl --request PATCH \
  --url https://api.agentset.ai/v1/namespace/{namespaceId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "slug": "<string>"
}'
{
  "success": true,
  "data": {
    "id": "<string>",
    "name": "<string>",
    "slug": "<string>",
    "organizationId": "<string>",
    "createdAt": "<string>",
    "embeddingConfig": {
      "provider": "OPENAI",
      "model": "text-embedding-3-small",
      "apiKey": "<string>"
    },
    "vectorStoreConfig": {
      "provider": "PINECONE",
      "apiKey": "<string>",
      "indexHost": "https://example.svc.aped-1234-a56b.pinecone.io"
    }
  }
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

namespaceId
string
required

The id of the namespace to update.

Body

application/json
name
string
Required string length: 1 - 64
slug
string
Required string length: 2 - 48

Response

200
application/json
The updated namespace
success
boolean
required
data
object
required