Fuselage
Powered By GitBook
Request Data Download
Request the user's data for download.
URL
Requires Auth
HTTP Method
/api/v1/users.requestDataDownload
yes
GET

Query Parameters

Argument
Example
Required
Description
fullExport
true or false
Optional, default false
If needs a full export.

Other Users Example Call

1
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
2
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
3
http://localhost:3000/api/v1/users.requestDataDownload
Copied!

Example Result

1
{
2
"requested": false,
3
"exportOperation": {
4
"_id": "uDSuaW7vGd9B7j8qD",
5
"createdAt": "2019-06-07T23:02:13.359Z",
6
"userId": "hjwGZafNqExtFNmN7",
7
"roomList": [
8
{
9
"roomId": "GENERAL",
10
"roomName": "general",
11
"userId": null,
12
"exportedCount": 8,
13
"status": "completed",
14
"targetFile": "general.html",
15
"type": "c"
16
}
17
],
18
"status": "uploading",
19
"exportPath": "/tmp/userData/hjwGZafNqExtFNmN7/partial",
20
"assetsPath": "/tmp/userData/hjwGZafNqExtFNmN7/partial/assets",
21
"fileList": [],
22
"generatedFile": "/tmp/zipFiles/hjwGZafNqExtFNmN7.zip",
23
"fullExport": false,
24
"_updatedAt": "2019-06-07T23:15:00.326Z"
25
},
26
"success": true
27
}
Copied!

Change Log

Version
Description
1.2.0
Added as users.requestDataDownload
Last modified 2mo ago