跳转到主要内容
PATCH
/
api
/
v2
/
channels
/
publish
/
records
/
{recordId}
/
work-link
更新作品链接状态
curl --request PATCH \
  --url https://aitoearn.cn/api/v2/channels/publish/records/{recordId}/work-link \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "workLink": "<string>",
  "dataId": "<string>",
  "platformWorkId": "<string>",
  "linkStatus": "ready",
  "linkError": "<string>",
  "linkMeta": {}
}
'
{
  "code": 0,
  "message": "请求成功",
  "data": {
    "id": "string",
    "accountType": "douyin",
    "type": "video",
    "status": -1,
    "publishTime": "2026-07-02T12:00:00.000Z",
    "flowId": "string",
    "taskId": "string",
    "userTaskId": "string",
    "accountId": "string",
    "title": "string",
    "desc": "string",
    "platformWorkId": "string"
  }
}

授权

X-Api-Key
string
header
必填

AiToEarn Open Platform API Key。

路径参数

recordId
string
必填

发布记录 ID

请求体

application/json

作品链接

Minimum string length: 1
dataId
string

作品数据 ID

Minimum string length: 1
platformWorkId
string

平台作品 ID

Minimum string length: 1

作品链接状态

可用选项:
pending,
ready,
failed

作品链接获取错误

作品链接扩展信息

响应

200 - application/json

请求已被服务处理。业务是否成功以响应体 code === 0 为准。

code
integer
必填

业务状态码。0 表示成功,非 0 表示业务错误。

message
string
必填

响应消息。

data
object
requestId
string

请求 ID。

timestamp
integer

错误响应时间戳,Unix 毫秒。