---
title: "Update badge"
method: PUT
path: "/api/v1/badges/{badge_id}"
tags: ["badges"]
---

# Update badge

`PUT /api/v1/badges/{badge_id}`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/badges/{badge_id}`
- Auth: none declared

Update an existing badge.

## Path parameters

- `badge_id` integer, required

## Headers

- `Authorization` string

## Request body

- BadgeUpdate: Request schema for updating an existing badge.
  - `asset_id` string, uuid, nullable
  - `label` string, nullable
  - `tag_filters` string[], nullable
  - `schema_drift_enabled` boolean, nullable
  - `freshness_enabled` boolean, nullable
  - `include_upstream` boolean, nullable
  - `is_active` boolean, nullable

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
