---
title: "Re-queues failed items of a sample generation so they run again."
method: POST
path: "/benchmark/sample-generation/{sampleGenerationId}/retry"
tags: ["SampleGeneration"]
---

# Re-queues failed items of a sample generation so they run again.

`POST /benchmark/sample-generation/{sampleGenerationId}/retry`

When no item ids are supplied, every failed item of the generation is retried. Item ids that
 do not belong to the generation or are not in a failed state are ignored. Returns the ids
 that were re-queued; a generation with no failed items yields an empty result.

## Path parameters

- `sampleGenerationId` string, required

## Request body

- object, nullable
  - `itemIds` string[], nullable — The specific item ids to retry. When omitted or empty, every failed item of the generation is retried.

## Response `200`

OK

- RetrySampleGenerationEndpointOutput
  - `retriedCount` integer, required — How many failed items were re-queued.
  - `retriedItemIds` string[], required — The ids of the items that were re-queued.

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden

---

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