Create Content File
3. createContentFile(data: object, name: string)
Description: Creates a new content file within the connected master file, storing user-defined JSON data.
Parameters:
-
data: object- JSON data to store (e.g.,{ username: 'Bob', email: 'bob@example.com' }). -
name: string- Unique name for the content file within the master file (e.g.,bobProfile).
Example:
await ulda.createContentFile({ username: 'Bob' }, 'bobProfile'); console.log('Content file created:', ulda.data['bobProfile'].content); // Output: Content file created: { username: 'Bob' }