On 7/8/20 11:08 AM, rongxinliu@cs50.harvard.edu wrote:
Hi Mark,
I'm not the only developer on this list.
I would like to know if there is a way to update the display_name of the member in a mailing list via REST API?
Having tried updating the display_name of a user but did not seem to work. The display_name did change, but the mailing list still displaying the old name.
By "the mailing list still displaying the old name" do you mean the membership list in Postorius or something else? And to what REST endpoint did you post the display_name?
The bottom line is a user can have multiple display names. Each user has a User record with a display_name attribute, one or more 'addresses', one of which is it's preferred_address. Each one of the addresses is an Address record with it's own email address and display_name.
Now, a member of a list can be either a User or an Address. If it's a User, its display_name is that of the user and it's email address is that of the preferred_address, but if it's an Address, its email and display_name are those of the Address.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan