I'm working with the Mailchimp API v3.0 to mutate list members.
Archiving members works without issues using the following endpoint:
DELETE /lists/{list_id}/members/{subscriber_hash}
The web-interface allows me to "unarchive" a member, reverting it back to it's previous state.
I haven't found this functionality in the API documentation yet.
I was able to unarchive the member by using the endpoint:
PATCH /lists/{list_id}/members/{subscriber_hash}
with body:
{"status": "subscribed"}
Although this does unarchive the member, this doesn't restore the status of the member. It simply sets the status to "subscribed" as provided in the body.
I'd like restore a member to its status before archiving. If a member was subscribed before archiving, then I would like it to be subscribed after unarchiving. Similarly if a member was unsubscribed before archiving, then they should be unsubscribed after unarchiving. Similar to what the web-interface does.
When retrieving the data of an archived member the return data does not include the status before archiving.
How can I unarchive a member using the Mailchimp API? Am I overlooking something, or is this functionality missing from the API?