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

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

Authorizations

Authorization
string
header
required

Smithery API key as Bearer token

Path Parameters

namespace
string
required
slug
string
required
reviewId
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