export_to_file
To export the search results of the Trash section to an XLSX table, use the core/export_to_file method.
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 the request is completed successfully, an XLSX file is returned.
If the request fails, an error code is returned.
Error codes
| Error 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). |