---
title: "Create badge"
method: POST
path: "/api/v1/badges"
tags: ["badges"]
---

# Create badge

`POST /api/v1/badges`

## Request

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

Create a new report badge.

## Headers

- `Authorization` string

## Request body

- BadgeCreate: Request schema for creating a new report badge.
  - `asset_id` string, uuid, required: Asset public ID (UUID) to scope the badge
  - `label` string, required: Badge display label
  - `tag_filters` string[]: Tag names to filter tables
  - `schema_drift_enabled` boolean: Check for schema drift issues
  - `freshness_enabled` boolean: Check for freshness issues
  - `include_upstream` boolean: Include upstream dependency issues

## Response `201`

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)
