Namespaces
Update a namespace.
Namespaces
Update a namespace.
Update a namespace for the authenticated organization. If there is no change, return it as it is.
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
Default authentication mechanism
Path Parameters
The id of the namespace to update.
Body
application/json
Required string length:
1 - 64
Required string length:
2 - 48
Response
200
application/json
The updated namespace
The unique ID of the namespace.
The name of the namespace.
The slug of the namespace.
The ID of the organization that owns the namespace.
The date and time the namespace was created.
The embedding model config. If not provided, our managed embedding model will be used. Note: You can't change the embedding model config after the namespace is created.
The vector store config. If not provided, our managed vector store will be used. Note: You can't change the vector store config after the namespace is created.
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"
}
}
}