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 Membership
AI-generatedOverview
This node operation updates the membership of a team in the Appwrite platform. It allows modifying the roles assigned to a specific membership within a team, which is useful for managing team permissions and access control. For example, you can change a member's role from 'member' to 'contributor' to grant additional privileges within the team.
Use Case Examples
- Updating a team member's roles to add contributor privileges.
- Changing the roles of a membership to restrict or expand access within a team.
Properties
| Name | Meaning |
|---|---|
| Team ID | The unique identifier of the team whose membership is being updated. |
| Membership ID | The unique identifier of the membership to update within the specified team. |
| Roles | A comma-separated list of roles to assign to the membership, defining the member's permissions within the team. |
Output
JSON
membershipId- The ID of the updated membership.teamId- The ID of the team to which the membership belongs.roles- The updated list of roles assigned to the membership.
Dependencies
- Requires an API key credential for authentication with the Appwrite API.
Troubleshooting
- Ensure the Team ID and Membership ID are correct and exist in the Appwrite project to avoid 'not found' errors.
- Verify that the roles string is properly formatted as a comma-separated list without invalid roles to prevent validation errors.
- Check API key permissions to ensure it has rights to update team memberships, otherwise authorization errors may occur.