Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Users → Update Preferences
AI-generatedOverview
This node interacts with the Appwrite API to update user preferences. It is designed to modify the preferences of a specified user by sending a JSON object representing the new preferences. This operation is useful in scenarios where user settings such as theme, language, or other customizable options need to be updated programmatically within an application using Appwrite as the backend.
Use Case Examples
- Updating a user's theme preference to dark mode and language to English.
- Changing notification settings or other user-specific configurations stored as preferences.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the user whose preferences are to be updated. |
| Preferences | A JSON object containing the user preferences to update, such as theme or language settings. |
Output
JSON
json- The response from the Appwrite API after updating the user preferences, typically containing the updated user data or confirmation of the update.
Dependencies
- Appwrite API key credential for authentication
Troubleshooting
- Ensure the User ID is valid and exists in the Appwrite system to avoid errors related to user not found.
- Verify that the preferences JSON is correctly formatted and contains valid keys and values as expected by the Appwrite API.
- Check API credentials and endpoint configuration to ensure successful authentication and connection to the Appwrite service.
Links
- Appwrite Users API - Update Preferences - Official documentation for updating user preferences using the Appwrite API.