Create a task
POST/wiki/convert/tasks
History
Version | Changes |
---|---|
v6.15.0 | Added in v6.15.0 |
Create an import or export task.
Different page types support different export formats, as follows:
Page Type | Export Format |
---|---|
default | pdf,docx |
collaboration | pdf,png,markdown |
word | pdf,docx |
excel | pdf,xlsx |
ppt | pdf,pptx |
collaborationPlugin | No restrictions, the supported formats are defined by the plugin |
Request
Query Parameters
The team ID
User ID, this parameter can only be passed when calling as an Oauth bot. It is used to perform operations as the specified user
- application/json
Body
required
- MOD1
Possible values: [ExportPage
]
Task type
payload
object
Task parameters
oneOf
Page ID
Possible values: [pdf
, png
, docx
, xlsx
, pptx
, markdown
]
Export format
Whether to hide the title, valid when the format is png
Possible values: <= 2560
Default value: 1280
Image width, valid when the format is png
Possible values: <= 1600
Default value: 800
Image height, valid when the format is png
Responses
- 200
- 401
- 403
- 404
- 500
Create successfully
- application/json
- Schema
- Example (from schema)
Schema
data
object
Task ID
The result of this request.
The error code of this request.
Error message for this request.
Error meta data for this request.
{
"data": {
"id": "string"
},
"result": "string",
"errorCode": "string",
"errorMsg": "string",
"errorData": {}
}
Returned if the authentication credentials are incorrect or missing.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
Returns if the scope check fails.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
Returned if the resource object was not found.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
Internal Server Error.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}