# 重启批量推理任务

> 全部文档的索引见 [llms.txt](https://ark.volcengine.com/llms.txt)；在任一文档页面地址后追加 `.md` 可获取该页的 Markdown 版本。

`POST https://ark.cn-beijing.volcengineapi.com/?Action=ResumeBatchInferenceJob&Version=2024-01-01`

重启一个已被终止（Terminated）或处于失败（Failed）状态的批量推理任务，将其重新拉起继续处理剩余请求。

> **说明**
>
> 仅 `Terminated` 或 `Failed` 状态的任务可以被重启。重启后任务从已完成的进度继续处理剩余请求，已成功完成的请求不会重复推理。

## 鉴权

本接口支持鉴权方式如下，详情请参见 [Base URL 及鉴权](/docs/base-url-and-authentication)。

* Access Key 鉴权，请在 [Access Key 管理](https://console.volcengine.com/iam/keymanage) 页面，获取 Access Key。本接口仅支持 Access Key 鉴权。

---

<span id="request-parameters"></span>
## 请求参数

### Body 参数

**Id** `string` `必选` | 任务 ID

待重启的批量推理任务 ID。可通过 *CreateBatchInferenceJob* 接口创建任务时获取，或通过 *ListBatchInferenceJobs* 查询。

## 响应参数

**Id** `string` | 任务 ID

重启成功后返回的批量推理任务 ID，与请求中传入的 *Id* 一致。


## 代码示例

## 默认

### cURL

#### Request

```bash
curl 'https://ark.cn-beijing.volcengineapi.com/?Action=ResumeBatchInferenceJob&Version=2024-01-01' \
  -H 'Content-Type: application/json' \
  -H 'X-Date: <X-Date>' \
  -H 'X-Content-Sha256: <X-Content-Sha256>' \
  -H 'Authorization: HMAC-SHA256 Credential=<AK>/<X-Date>/cn-beijing/ark/request, SignedHeaders=content-type;host;x-content-sha256;x-date, Signature=<Signature>' \
  -d '{"Id": "bi-20240918194641-r2nwq"}
'
```

#### Response

```
{
  "ResponseMetadata": {
    "RequestId": "202501151747141031441900110C4B1C",
    "Action": "ResumeBatchInferenceJob",
    "Version": "2024-01-01",
    "Service": "ark",
    "Region": "cn-beijing"
  },
  "Result": {
    "Id": "bi-20240918194641-r2nwq"
  }
}
```
