获取任务状态
GET/wiki/convert/tasks/:taskID/info
History
Version | Changes |
---|---|
v6.15.0 | Added in v6.15.0 |
获取任务状态。
Request
Path Parameters
taskID stringrequired
任务 ID
Query Parameters
teamID stringrequired
团队ID
requestUserID string
用户 ID,此参数仅在作为 Oauth 机器人调用时才能传递。它用于以指定用户的身份执行操作
Responses
- 200
- 401
- 403
- 404
- 500
获取成功
- application/json
- Schema
- Example (from schema)
Schema
status string
Possible values: [Pending
, Processing
, Success
, Failed
]
任务状态
message stringnullable
任务信息
file
object
nullable
任务产物
name string
文件名
size int64
文件大小
expireAt int64
文件过期时间
data objectnullable
任务附加信息
{
"status": "Pending",
"message": "string",
"file": {
"name": "string",
"size": 0,
"expireAt": 0
},
"data": {}
}
如果身份验证凭据不正确或丢失,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
如果scope检验不通过,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
如果未找到资源对象,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
内部服务器错误
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}
Loading...