# Generate a drafting run's Targets again

Runs the recruiter prompt on the run's resume again and replaces the draft's Targets with a fresh, ticked list, returning at once while the new Targets land one by one; read the run until targetsGeneratingSince is null. Counts one AI action. Only a run still drafting, and not still generating, can be regenerated. A generation that fails before any Target arrives gives the draft back the Targets it had and records the reason. Requires authentication.

```http
POST https://hiresweep.com/api/openapi/discovery/runs/{id}/regenerate
x-api-key: YOUR_API_KEY
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes |  |

## Request body

```json
{
  "type": "object",
  "properties": {
    "clientId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "description": "The client whose data this is, for an operator applying on behalf of clients. Omit for your own."
    }
  }
}
```

## Responses

- `200`: The drafting run, with its new Targets being generated.
