---
title: "Rerun async operation"
method: POST
path: "/async_tasks/{task_id}/rerun"
tags: ["Async Tasks"]
---

# Rerun async operation

`POST /async_tasks/{task_id}/rerun`

## Request

- Base URL: `https://dataops.nexla.io/nexla-api`
- URL: `https://dataops.nexla.io/nexla-api/async_tasks/{task_id}/rerun`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nexla/apis/nexla-rest-api/docs/async_tasks/:task_id/rerun/post.ts> (a function with typed inputs; its response is checked against the schema)

Rerun an async operation. This is used to re-run an async operation. The task will be re-created and executed with the same arguments.

## Path parameters

- `task_id` integer, required

## Headers

- `Accept` 'application/vnd.nexla.api.v1+json' | 'application/json': Setting to `application/vnd.nexla.api.v1+json` is recommended.

## Response `200`

Success

- AsyncTask: Success
  - `id` string: The unique identifier of the task.
  - `type` 'BulkDeleteNotifications' | 'BulkMarkAsReadNotifications' | 'BulkPauseFlows' | 'CallProbe' | 'ChownUserResources' | 'DeactivateUser' | 'GetAuditLogs'
  - `status` 'pending' | 'running' | 'completed' | 'failed' | 'cancelled': The status of the task.
  - `progress` integer: The progress of the task.
  - `priority` integer: The priority of the task.
  - `created_at` string, date-time: The date and time the task was created.
  - `stopped_at` string, date-time: The date and time the task was completed, failed or stopped in another way.
  - `result` object: The result of the task.
  - `result_url` string: The URL to the result of the task.
  - `error` object: The error that occurred during the task.
  - `owner` Owner
    - `id` integer
    - `full_name` string
    - `email` string, email
  - `org` Org
    - `id` integer
    - `name` string
    - `email_domain` string
    - `email` unknown
    - `client_identifier` unknown

## Other responses

- `401`: Unauthorized
- `404`: Not Found

---

[API](https://skmtc.dev/nexla/apis/nexla-rest-api.md) - [All operations](https://skmtc.dev/nexla/apis/nexla-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nexla/apis/nexla-rest-api/revisions/ef02be92fe7b?raw)
