Skip to main content

Create a task

POST 

/wiki/convert/tasks

History

VersionChanges
v6.15.0Added in v6.15.0

Create an import or export task.

Different page types support different export formats, as follows:

Page TypeExport Format
defaultpdf,docx
collaborationpdf,png,markdown
wordpdf,docx
excelpdf,xlsx
pptpdf,pptx
collaborationPluginNo restrictions, the supported formats are defined by the plugin

Request

Query Parameters

    teamID stringrequired

    The team ID

    requestUserID string

    User ID, this parameter can only be passed when calling as an Oauth bot. It is used to perform operations as the specified user

Body

required

    taskType string

    Possible values: [ExportPage]

    Task type

    payload

    object

    Task parameters

    oneOf

    pageID string

    Page ID

    format string

    Possible values: [pdf, png, docx, xlsx, pptx, markdown]

    Export format

    hideTitle boolean

    Whether to hide the title, valid when the format is png

    width integer

    Possible values: <= 2560

    Default value: 1280

    Image width, valid when the format is png

    height integer

    Possible values: <= 1600

    Default value: 800

    Image height, valid when the format is png

Responses

Create successfully

Schema

    data

    object

    id string

    Task ID

    result string

    The result of this request.

    errorCode string

    The error code of this request.

    errorMsg string

    Error message for this request.

    errorData object

    Error meta data for this request.

Loading...