The root-user command enables or disables the root user login.

JSON Input Data Format
{
    "id": string,
    "status": string
}
id * Specifies the ID of the Sky Node.
status * Specifies the status of the root login. If "enable" is specified, it will enable root login; any other string value will disable root login.
* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


Successful Response
{
    "result": "OK",
    "payload": "The process was successfully completed"
}

Failed Response
{
    "result": "ERR",
    "message": "Error message ..."
}