导出页面
GET/wiki/pages/:pageID/export
History
Version | Changes |
---|---|
v6.12.0 | Added in: v6.12.0 |
导出页面。
已废弃,请使用异步导出接口。
Request
Path Parameters
pageID stringrequired
页面 ID
Query Parameters
teamID stringrequired
团队ID
requestUserID string
用户 ID,此参数仅在作为 Oauth 机器人调用时才能传递。它用于以指定用户的身份执行操作
format stringrequired
Possible values: [png
]
导出格式,不同类型的页面支持导出不同的格式。 collaboration: png
hideTitle boolean
是否隐藏标题,true: 隐藏,false: 不隐藏。
width integer
Possible values: <= 2560
Default value: 1280
宽度,导出为 png 时有效。
height integer
Possible values: <= 1600
Default value: 800
高度,导出为 png 时有效。
Responses
- 200
- 401
- 403
- 404
- 500
成功
- application/octet-stream
- Schema
Schema
string
如果身份验证凭据不正确或丢失,则返回
- 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...