Ah, I must have totally misunderstood then, apologies Mark. So plucking that
method here for reference:
```
def remove_role(self, role, address):
"""Remove a list Member with a specific Role.
:param str role: The role for the new member.
:param str address: A valid email address for the new Member.
"""
url = 'lists/%s/%s/%s' % (
self.fqdn_listname, role, quote_plus(address))
self._connection.call(url, method='DELETE')
```
Given a list address of [email protected], and a subscriber of [email protected], the
API endpoint would be:
```
'lists/announce.bar.com/moderator/[email protected]'
```
Is that correct? One question, I think I assumed that removing a user from the
list would also cascade to remove any roles that user may have had. So we're
currently POSTing to `lists/announce.bar.com/roster/member`, and I was
expecting that to also remove the moderator role. But it sounds like it would
require an extra call to explicitly remove them as moderator?
_______________________________________________
Mailman-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at:
https://lists.mailman3.org/archives/list/[email protected]/message/UDVV2T2G76PFZSJAZSFD4RJJDAUBXB7D/
This message sent to [email protected]