Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
53 lines (44 loc) · 1.88 KB

File metadata and controls

53 lines (44 loc) · 1.88 KB

Request Data Download

HTTP MethodURLRequires Auth
GET/api/v1/users.requestDataDownloadyes

Query Parameters

KeyExample ValueDescription
fullExporttrue or falseWhether you want a full export or not. By default, the value is false.

Example Call

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

Example Response

{
    "requested": false,
    "exportOperation": {
        "_id": "uDSuaW7vGd9B7j8qD",
        "createdAt": "2019-06-07T23:02:13.359Z",
        "userId": "hjwGZafNqExtFNmN7",
        "roomList": [
            {
                "roomId": "GENERAL",
                "roomName": "general",
                "userId": null,
                "exportedCount": 8,
                "status": "completed",
                "targetFile": "general.html",
                "type": "c"
            }
        ],
        "status": "uploading",
        "exportPath": "/tmp/userData/hjwGZafNqExtFNmN7/partial",
        "assetsPath": "/tmp/userData/hjwGZafNqExtFNmN7/partial/assets",
        "fileList": [],
        "generatedFile": "/tmp/zipFiles/hjwGZafNqExtFNmN7.zip",
        "fullExport": false,
        "_updatedAt": "2019-06-07T23:15:00.326Z"
    },
    "success": true
}

Change Log

Version Description
1.2.0 Added as users.requestDataDownload