---
title: "Update Transaction Spam State"
method: PUT
path: "/api/v1/transactions/{id}/update-spam-state"
tags: ["Transactions"]
---

# Update Transaction Spam State

`PUT /api/v1/transactions/{id}/update-spam-state`

Update transaction's spam state.

## Path parameters

- `id` string, uuid, required — ID of the transaction to update spam state for.

## Request body

- UpdateTransactionSpamStateRequest
  - `is_spam` boolean, required

## Response `204`

Successful Response

## Other responses

- `400` — Bad Request
- `401` — Unauthorized User
- `403` — Forbidden User
- `408` — Request Timeout
- `422` — Validation Error
- `429` — Rate Limit Exceeded
- `500` — Unexpected Error

---

[API](https://skmtc.net/fordefi/apis/fordefi-api.md) · [All operations](https://skmtc.net/fordefi/apis/fordefi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fordefi/fordefi-api/versions/8014fd69ea17/schema)
