export_to_file
The export_to_file function is used to export the search results of the Trash section to an XLSX table.
svc=core/export_to_file¶ms={
"sheets":[
{
"title":"<text>",
"rows":[
["<text>"]
]
}
],
"format":<uint>
}
Parameters
The required parameters are marked with an asterisk (*).
| Parameter | Description |
|---|---|
| sheets* | Array of tables. |
| title* | Table title. |
| rows* | Table columns and rows. |
| format* | Table format. Specify 8 for XLSX. |
Response
If completed successfully, returns an XLSX file.
Error codes
| Code | Description |
|---|---|
| 4 | Invalid parameters provided or inappropriate format specified. The only suitable format is XLSX, that is, the request should contain "format": 8. |
| 5 | Request execution error (failed to create temporary directories and/or execute file creation method). |