Import presentation

1. API Description

This API is used to import a presentation.

Request mode:

  • V2.6.0 and above: POST [ip]/mwapi/V2.0/presentation/import-presentation
  • V2.5.0 and below: POST [ip]/mwapi/import-presentation
Administrator Rights Logged-in
No Yes

2. Input Parameters

Name Required Type Description
name Yes String File name
md5 Yes String MD5 value of the file (If the file is large, only the first 10485760 bytes are counted.)

3. Output Parameters

Name Type Description
status Int Status code
message String Status description

4. Example

Importing a presentation.

Input Example
{
    "name":"ID_1_MyPresentation.tar",
    "md5":"asdfghjklkjhgfdsdfghjk"
}
Output Example
{
    "status":0,
    "message":"SUCCESS"
}

5. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Status Definition Description
7 MW_STATUS_INVALID_ARG Missing required parameters
5 MW_STATUS_NOT_EXIST The operation content does not exist (the file imported by the user does not exist, and the file MD5 verification failed)
11 MW_STATUS_DEVICE_BUSY Device is busy (uploading files, recording, etc.)

results matching ""

    No results matching ""