---
title: "Atomically record or change a trusted Bot base vote"
method: PUT
path: "/v2/bases/{baseId}/votes/{voterId}"
tags: ["Bases Bot Integration"]
---

# Atomically record or change a trusted Bot base vote

`PUT /v2/bases/{baseId}/votes/{voterId}`

## Request

- Base URL: `https://api.clashk.ing`
- URL: `https://api.clashk.ing/v2/bases/{baseId}/votes/{voterId}`
- Auth: HTTP bearer

## Path parameters

- `baseId` string, required
- `voterId` string, required: Discord snowflake as an unsigned decimal string

## Request body

- object
  - `direction` 'up' | 'down', required

## Response `200`

Success

- object
  - `baseId` string, required
  - `voterId` string, required: Discord snowflake as an unsigned decimal string
  - `direction` 'up' | 'down', required

## Changes

- **2026-09-16** `8411b4ef8009`: 1 breaking, 1 info
  - added the pattern `^[1-9][0-9]*$` to the `path` request parameter `baseId`
  - the `baseId` response's property pattern `^[1-9][0-9]*$` was added for the status `200`

[Operation history](https://skmtc.dev/clashk/apis/clashking-api/changes/v2/bases/:baseId/votes/:voterId/put.md)

---

[API](https://skmtc.dev/clashk/apis/clashking-api.md) - [All operations](https://skmtc.dev/clashk/apis/clashking-api/llms.txt) - [OpenAPI document](https://skmtc.dev/clashk/apis/clashking-api/revisions/8411b4ef8009?raw)
