cURL
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": "<string>", "model": "text-embedding-3-small", "apiKey": "<string>" }, "vectorStoreConfig": { "provider": "<string>", "apiKey": "<string>", "indexHost": "https://example.svc.aped-1234-a56b.pinecone.io" } } }
Update a namespace for the authenticated organization. If there is no change, return it as it is.
Default authentication mechanism
The id of the namespace to update.
The updated namespace
The response is of type object.
object