Mad Mimi

Audience Update

PUT to https://api.madmimi.com/audience_members/{email} with the following parameters:

Your Mad Mimi username
Your Mad Mimi api_key
A number of audience_member[{attribute}] attributes for the changes you want to make
(Optional) One or more lists[add] parameters containing the IDs of lists you wish to add the member to
(Optional) One or more lists[remove] parameters containing the IDs of lists you wish to remove the member from

HTTP Request Headers

Please ensure that you use a Content-Type of application/x-www-form-urlencoded if you're submitting the parameters as text in the body of the request.

Sample request

Make a PUT request to http://api.madmimi.com/audience_members/john@example.com with the following body:

audience_member[first_name]='John'
&audience_member[last_name]='Doe'
&audience_member[favorites]='Cookies'
&lists[add]=100,101

Sample success response

{"result":{"external_id":null,"suppression_reason":"","email":"john@example.com","recent_signup?":false,"suppression_reason_class":"sent","name":"John Doe","suppressed":false,"id":3491788538},"success":true}

Sample error response

{"error":"Cannot find audience member with identifier john@example.com.","success":false}