API Reference

This allows you to modify user-specific settings for your Delta Storage account, including the edge node and secured mode.

try {
  const updatedSettings = {
    // node: 'new_edge_node', // (optional) Specify a new edge node.
    isSecureMode: false, // Enable or disable secure mode (true or false).
  };

  const [updateResult, error] = await sdk.settings.update({
    ...updatedSettings,
  });

  // Check for success
  if (error) {
    console.error("Failed to update user settings:", error);
  } else {
    console.log("User settings updated successfully:", updateResult);
  }
} catch (error) {
  console.error(
    "An unexpected error occurred while updating user settings:",
    error.message
  );
}

Params

  • body (object): An object containing the user-specific settings to update (edge node and isSecureMode).