---
title: "Toggle vote on a catalog asset"
method: POST
path: "/v2/catalog/assets/{asset_id}/vote"
tags: ["Catalog"]
---

# Toggle vote on a catalog asset

`POST /v2/catalog/assets/{asset_id}/vote`

## Request

- Base URL: `https://api.carbonarc.co` (the document declares no server; this is the origin it was published from)
- URL: `https://api.carbonarc.co/v2/catalog/assets/{asset_id}/vote`
- Auth: none declared

Adds an upvote if the user hasn't voted; removes it if they have (YouTube-style toggle).

## Path parameters

- `asset_id` string, uuid, required

## Response `200`

Successful Response

- VoteResponse
  - `asset_id` string, uuid, required
  - `voted` boolean, required
  - `vote_count` integer, required

## Other responses

- `404`: Not Found
- `422`: Validation Error

---

[API](https://skmtc.dev/carbonarc/apis/carbon-arc-api-documentation.md) · [All operations](https://skmtc.dev/carbonarc/apis/carbon-arc-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/carbonarc/apis/carbon-arc-api-documentation/revisions/7362ca3a398d?raw)
