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
Teams → Update Preferences
AI-generatedOverview
This node operation updates the preferences of a specified team in the Appwrite platform. It is useful for managing team settings such as themes, notifications, or other customizable options stored as JSON. For example, a user can update a team's theme to 'dark' mode or enable/disable notifications by providing the team ID and the new preferences in JSON format.
Use Case Examples
- Updating a team's theme to dark mode and enabling notifications by providing the team ID and preferences JSON.
- Modifying notification settings for a team to customize user experience.
Properties
| Name | Meaning |
|---|---|
| Team ID | The unique identifier of the team whose preferences are to be updated. |
| Preferences | The JSON object containing the new preferences to apply to the team, such as theme or notification settings. |
Output
JSON
json- The response from the Appwrite API after updating the team preferences, typically containing the updated team data or confirmation.
Dependencies
- Requires an Appwrite API key credential for authentication to interact with the Appwrite API.
Troubleshooting
- Ensure the provided Team ID is correct and exists in the Appwrite project to avoid 'team not found' errors.
- Validate the JSON format of the preferences input to prevent parsing errors.
- Check API key permissions to confirm it has rights to update team preferences.
- Common error messages include authentication failures, invalid team ID, or malformed JSON preferences. Resolving these involves verifying credentials, team existence, and JSON syntax.
Links
- Appwrite Teams API - Update Preferences - Official documentation for updating team preferences using the Appwrite API.