Skip to main content
POST
恢复自我修复任务

授权

Authorization
string
header
必填

在 Authorization 头中使用您的 Bright Data API Key 作为 Bearer token。

认证方法:

  1. 从 Bright Data 账户设置获取您的 API Key: https://brightdata.com/cp/setting/users
  2. 在请求的 Authorization 头中包含 API Key
  3. 格式: Authorization: Bearer YOUR_API_KEY

示例:

了解如何获取 Bright Data API Key: https://docs.brightdata.com/cn/api-reference/authentication#如何生成新的-api-key?

路径参数

collector_id
string
必填

由创建爬虫模板 API 端点返回的爬虫 ID。

请求体

application/json
message
boolean
必填

true 批准建议的 diff 并让自我修复任务继续。false 拒绝该 diff 并结束任务。

示例:

true

auto_save
boolean

可选。为 true 时,自我修复任务成功完成后会自动保存已批准的模板。仅当 message 为 true(您已批准 diff)且任务成功时才会保存模板。目前仅适用于成功的任务。默认为 false。

示例:

true

响应

200

自我修复任务已恢复