Control

Function

This API is used to set parameter for Storage > Cloud page.

Request Message

See Storage > Cloud > Range > Parameter Description > Table 5 for parameter description.

Sample:

POST /API/StorageConfig/Cloud/Control HTTP/1.1
{
    "version": "1.0",
    "data": {
        "channel_info": {
            "CH1": {
                "folder_name": "CH1", 
                "chn_index": "CH1"
            },
            "CH5": {
                "folder_name": "CH5"
            },
            "CH6": {
                "folder_name": "CH6"
            },
            "CH7": {
                "folder_name": "CH7"
            },
            "CH11": {
                "folder_name": "CH11"
            },
            "CH14": {
                "folder_name": "CH14"
            },
            "CH15": {
                "folder_name": "CH15"
            },
            "CH16": {
                "folder_name": "CH16"
            }
        },
        "cloud_over_write": "OFF",
        "cloud_status": "NetworkBlocked",
        "cloud_storage": true,
        "cloud_type": "DROPBOX",
        "progress": 0,
        "total_size": "0.00B",
        "used_size": "0.00B",
        "video_type": "RF"
    }
}

Response Message

See Storage > Cloud > Range > Parameter Description > Table 6 for parameter description.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "url": "https://www.dropbox.com/oauth2/authorize?client_id=a9j3357whoj7r4h&redirect_uri=https://cloud.al8.co/dropbox&response_type=code&token_access_type=offline"
    }
}

Error Code

See Response Messages Body and Common error_code for more information.