Browse API reference
Mailing Lists
Update a mailing list
Updates a mailing list.
You can add or replace recipients in bulk using this endpoint.
Parameters
Path
idrequiredThe ID of the mailing list to update.
Request body
application/jsonnameA user-friendly name for this mailing list. This name is displayed in the dashboard.
"Black Friday Leads"delete_old_recipientsWhether to delete all the currently stored recipients from the mailing list.
falsefalserecipientsAn optional list of new recipients to add to the mailing list.
object.addressobjectnamestringThe name of the recipient.
"John Doe"linestringrequiredThe complete address line for the recipient.
"123 Main St, Anytown, Anyplace"postcodestringThe postal code of the address.
"AB1 2CD"countrystringThe country code of the address. This is an ISO 3166-1 alpha-2 country code. Example: GB.
"GB""GB"variablesobjectAn arbitrary object of the dynamic fields for this recipient. Dynamic fields are used to tailor templates uniquely for each recipient.
address_validationWhether to request address validation for the mailing list. This is a value-added service that we offer to ensure your mailings are only charged for and sent to real, deliverable addresses. Please contact us at hello@intelliprint.net to enable this service for your account.
requestedbooleanWhether to perform address validation on all the recipients in the mailing list.
falsefalseResponses
Sample JSON for every response shape is in the right rail. Expand a row below to see every field this endpoint can return.
200Successful responseapplication/json
idA globally unique identifier for the mailing list.
"mal_eg"objectThe object type. Always mailing_list.
mailing_listaccountThe Intelliprint account ID that the mailing list belongs to.
"acc_eg"nameA user-friendly name for this mailing list. This name is displayed in the dashboard.
"Black Friday Leads"recipientsThe number of recipients present in the mailing list. This value is updated automatically when recipients are added or removed from the mailing list.
1000variablesAn array of the dynamic fields present in the mailing list. Dynamic fields are used to tailor templates uniquely for each recipient.
object.namestringThe name of the dynamic field. This is the value without the curly braces. For example, if the dynamic field is {exampleA}, the name will be exampleA.
"salutation"longest_address_lineThis is the longest address line present across all recipients in the mailing list. We keep track of this to ensure the address box on postcard templates is large enough to fit the longest address.
"123 Main St, Anytown, Anyplace"address_validationAddress validation is a value-added service that we offer to ensure your mailings are only charged for and sent to real, deliverable addresses. Please contact us at hello@intelliprint.net to enable this service for your account.
requestedbooleanWhether address validation has been requested for the mailing list.
falsefalsecompletedbooleanWhether all addresses in the mailing list have been validated.
falsefalserecipientsobjectThe number of recipients that have passed or failed address validation.
passedintegerThe number of recipients that have passed address validation.
00failedintegerThe number of recipients that have failed address validation.
00createdThe UNIX timestamp of when the mailing list was created. We use UNIX timestamps to avoid timezone-based issues.
1761955200400Example error responseapplication/json
errormessagestringA human-readable message describing the error. You can display this to your users to help them understand what went wrong.
"Received unknown parameter: testmood (Did you mean testmode?)"typestringThe general category of the error.
invalid_request_errorauthentication_errorpayment_errorrate_limitedinternal_error"invalid_request_error"codestringA unique code for the specific error that occurred.
parameter_invalidparameter_missingparameter_unknownbody_too_largebody_incorrect_formatno_api_keyinvalid_api_keylogged_outforbiddenpayment_errornot_foundrate_limitedrefusedinternal_error"parameter_unknown"paramstringThe parameter that caused the error, if applicable.
"testmood"