Zum Hauptinhalt springen
Mutation

removeProfileMember

Removes a member from the profile's team. Any member can remove themselves; otherwise requires being an owner, or an admin removing someone with a lower role. The last owner cannot be removed.

Argumente

  • profileIdID!

    ID of the profile.

  • targetUserIdID!

    ID of the member's account.

Rückgabe

MutationSuccess!

Beispiel

mutation RemoveProfileMember($profileId: ID!, $targetUserId: ID!) {
  removeProfileMember(profileId: $profileId, targetUserId: $targetUserId) {
    success
  }
}