Skip to main content
PUT
/
namespaces
/
{name}
JavaScript
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);
{
  "name": "myorg",
  "createdAt": "2024-01-01T00:00:00.000Z"
}

Authorizations

Authorization
string
header
required

Smithery API key as Bearer token

Path Parameters

name
string
required
Required string length: 3 - 39

Response

Namespace created successfully

name
string
required
Example:

"myorg"

createdAt
string
required
Example:

"2024-01-01T00:00:00.000Z"