Skip to main content
PUT
/
servers
/
{namespace}
/
{server}
/
secrets
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.servers.secrets.set('server', {
  namespace: 'namespace',
  name: 'x',
  value: 'x',
});

console.log(response.success);
{
  "success": true
}

Authorizations

Authorization
string
header
required

Smithery API key as Bearer token

Path Parameters

namespace
string
required
server
string
required

Body

application/json
name
string
required
Minimum string length: 1
value
string
required
Minimum string length: 1

Response

Secret updated

success
boolean
required