InoDrive / File / writeModuleConfig
InoDrive.File.writeModuleConfig(content)
Writes module configuration information to the InoDrive Module
Arguments: Content (JSON Object) matching the ModuleConfig format from readModuleConfig()
Returns: Boolean – True or False Value on successfully writing out the Module Configuration File.
// Import InoDrive API Library import { InoDriveApiJS } from "ck-inodrive-api" // Instatiate the API let InoDriveApi = new InoDriveApiJS.InoDriveApi({ connectAppUrl: "", secure: false }) // Instantiate InoDrive Object let Drive = await InoDriveApi.InoDrive({ target: "Name", autoConnect: true }) // Get Module Configuration File let content= await Drive.File.readModuleConfig() // Change Module Name let content.name = "InoDriveFour" // Write Out to Configuration File await Drive.File.writeModuleConfig(content) // Then read the file again to view changes made console.log(await Drive.File.readModuleConfig())