---
title: "Requeue Job"
method: POST
path: "/admin/jobs/{job_id}/requeue"
tags: ["Admin"]
---

# Requeue Job

`POST /admin/jobs/{job_id}/requeue`

## Request

- Base URL: `https://api.kolens.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kolens.ai/admin/jobs/{job_id}/requeue`
- Auth: none declared

Reset a failed job so a worker picks it up again.

Only valid for ``status='failed'`` rows. Resets:
  - status         → queued
  - attempt_count  → 0
  - error_message  → null
  - stage          → 'Requeued by admin'
  - queued_at      → now
  - started_at     → null
  - completed_at   → null
  - apify_run_id        → null  (so a fresh run kicks off)
  - apify_dataset_id    → null
  - apify_webhook_token → null
  - cancel_requested    → False

Other fields (priority, worker_id, etc.) are left alone — the
scheduler claim cycle will overwrite them naturally.

## Path parameters

- `job_id` string, required

## Headers

- `x-admin-secret` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kolens/apis/kolens-api.md) · [All operations](https://skmtc.dev/kolens/apis/kolens-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kolens/apis/kolens-api/revisions/5d6865ab0a24?raw)
