Skip to main content
POST
/
skills
/
{namespace}
/
{slug}
/
vote
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 skillVoteResponse = await client.skills.votes.create('slug', {
  namespace: 'namespace',
  vote: 'up',
});

console.log(skillVoteResponse.createdAt);
{
  "vote": "up",
  "createdAt": "<string>"
}

Authorizations

Authorization
string
header
required

Smithery API key as Bearer token

Path Parameters

namespace
string
required
slug
string
required

Body

application/json
vote
enum<string>
required

Vote direction

Available options:
up,
down

Response

Vote recorded

vote
enum<string>
required

Vote direction

Available options:
up,
down
createdAt
string
required