User
Create
Whether self-hosted or on MycelCloud, your client never needs to create a user explicitly — simply fetch it. On a self-hosted instance, Mycel creates the default user automatically the first time you connect. On MycelCloud, user creation is handled directly by the platform.
Only one user
For now, Mycel only supports one user per instance. A few modifications are yet to be made to support multiple users, but this won't impact your code — whether on a self-hosted instance or MycelCloud, simply save the returned user data.
Fetch
Required
Once communication with Mycel is initiated, it's time to query user
info. To reach it, call GET /users. It returns the current user's
ID, configuration, and template settings, gathered in a UserView.
Update
To update user data (name, config, ...), use:
See Update Resources Page for more details.
Once the user is fetched, you're ready to pull their collections.