action appwrite_teams_update_membership_roles { label: "Update Membership Roles" description: "" provider: appwrite method: PATCH path: "/teams/{teamId}/memberships/{membershipId}" encoding: json input: { type: "object" properties: { membershipId: { type: "string" } roles: { type: "array" description: "Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Max length for each role is 32 chars." items: { type: "string" } } teamId: { type: "string" } } required: ["membershipId", "roles", "teamId"] additionalProperties: false } output: { type: "object" description: "Membership" required: ["$id", "confirm", "email", "invited", "joined", "name", "roles", "teamId", "userId"] properties: { "$id": { type: "string" description: "Membership ID." } confirm: { type: "boolean" description: "User confirmation status, true if the user has joined the team or false otherwise." } email: { type: "string" description: "User email address." } invited: { type: "integer" format: "int32" description: "Date, the user has been invited to join the team in Unix timestamp." } joined: { type: "integer" format: "int32" description: "Date, the user has accepted the invitation to join the team in Unix timestamp." } name: { type: "string" description: "User name." } roles: { type: "array" description: "User list of roles" items: { type: "string" } } teamId: { type: "string" description: "Team ID." } userId: { type: "string" description: "User ID." } } } }