---
title: "Secret Suites Rotate"
method: POST
path: "/api/v1/tasks/secret-suites/rotate"
tags: ["tasks"]
---

# Secret Suites Rotate

`POST /api/v1/tasks/secret-suites/rotate`

## Request

- Base URL: `https://api.badgeia.com`
- URL: `https://api.badgeia.com/api/v1/tasks/secret-suites/rotate`
- Auth: none declared

Rotate a secret suite: bump ``suite_version`` for every task in it.

Rotation makes a leaked answer go stale — runs recorded under the old
version keep their recorded version (the run snapshots it at finalize), so
a builder who memorised the previous answers gets no credit on the new
version. Operator-driven (no automatic rotation). 404 when the suite has no
tasks (so a typo'd suite_id can't silently no-op).

## Request body

- SecretSuiteRotateRequest
  - `suite_id` string, required

## Response `200`

Successful Response

- SecretSuiteRotateResult
  - `suite_id` string, required
  - `previous_version` integer, required
  - `new_version` integer, required
  - `tasks_rotated` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/badgeia/apis/badge.md) · [All operations](https://skmtc.dev/badgeia/apis/badge/llms.txt) · [OpenAPI document](https://skmtc.dev/badgeia/apis/badge/revisions/7e7f7fee8b77?raw)
