Create a new namespace owned by the authenticated user. This endpoint is idempotent - if the namespace already exists and is owned by the user, returns success.
PUT
/
namespaces
/
{name}
JavaScript
Copy
Ask AI
import Smithery from '@smithery/api';const client = new Smithery({ apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted});const response = await client.namespaces.set('xxx');console.log(response.createdAt);
import Smithery from '@smithery/api';const client = new Smithery({ apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted});const response = await client.namespaces.set('xxx');console.log(response.createdAt);