Metric

Delete Metric

POST
/api/metric/delete

Delete a metric by ID. This is a soft delete — deleted metrics are excluded from the list endpoint and stop being evaluated.

Authorizations

  • Authorizationstringheaderrequired

    API Key required. Format: Bearer wc-your-api-key

Headers

  • whitecircle-versionstringrequired

    API Version

    Example: "2026-04-15"

Body

application/json

  • idstringrequired

Response

application/json

Success

  • idstringrequired

  • namestringrequired

  • flagged_contentstringrequired

  • applies_toenum<string>required

    Available options: input, output, any

    Example: "input"

  • content_typeenum<string>required

    Available options: session, artifact, any

    Example: "session"

  • modeenum<string>required

    Available options: prod, shadow

    Example: "prod"

  • deployment_idsstring[]required

  • country_codesstring[]required

  • rollout_percentageinteger<int32>required

    Required range: x >= 0

  • revision_idstringrequired

  • created_atstring<date-time>required

  • allowed_contentstring | null

  • severity_level_idstring<uuid> | null

  • deleted_atstring<date-time> | null