Save Enabling Status of Cloud Storage

Last Updated on : 2025-01-02 03:06:07download

Enable or disable cloud storage and save the status.

API address

POST: /v1.0/cloud/ipc/{device_id}/storage/switch/status/save

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringpathtrueThe device ID.

Description of body

Parameter nameTypeINRequiredDescription
home_idLongbodytrueThe home ID.
switch_statusBooleanbodytrueThe enabling status. Valid values:
  • true: enabled
  • false: disabled

Return parameter

Parameter nameTypeDescription
successBooleanIndicates whether the operation is successful. Valid values:
  • true: success.
  • false: failure.
codeStringThe error code. For more information, see the Global Error Codes.
msgStringThe message that is returned if the request fails. It is empty if the request is successful.
resultBooleanThe returned result.

Request example

POST: /v1.0/cloud/ipc/6c4478c****3e752d9chvw/storage/switch/status/save
{
  "home_id": 123456,
  "switch_status": true
}

Return example

{
    "tid": "d61c6974c****1efbb08769169332025",
    "result": true,
    "t": 1735630111740,
    "success": true
}

Error code

For more information, see error code.