Skip to content

Update contact list

If you have questions regarding this API, please visit our API FAQ page.

Updating a contact list

Make a PATCH request to https://webapi.inboxroad.com/api/v2/contacts-lists/{blueprint_id}/ with a valid X-API-Key.

Terminal window
curl -X PATCH 'https://webapi.inboxroad.com/api/v2/contacts-lists/{blueprint_id}/' \
-H 'X-API-Key: <your_token>' \
-H 'Content-Type: application/json' \
-d '{
"label": "Updated Newsletter Subscribers",
"description": "Updated main newsletter contact list"
}'

Path parameters

Param nameDescription
blueprint_idUnique identifier of the contacts list (UUID).

Request fields

Only the fields supplied in the body are changed.

Field nameRequiredDescription
labelNoNew name for the list.
descriptionNoNew description.
colorNoNew hex color from the allowed palette.
fields_orderNoNew display order for the list’s fields. Must contain every existing field id exactly once.
unsub_success_redirect_urlNoRedirect URL after a successful unsubscribe.
unsub_failed_redirect_urlNoRedirect URL after a failed unsubscribe.
welcome_on_embed_form_subscribeNoSend a welcome email when a contact subscribes via an embed form.
welcome_on_single_contact_addNoSend a welcome email when a contact is added individually.
welcome_email_subjectNoSubject of the welcome email.
welcome_email_template_idNoId (UUID) of an email template to use for the welcome email.
welcome_sender_profile_idNoId (UUID) of a sender profile to send the welcome email from.
double_opt_inNoDouble opt-in configuration object. Same fields as on create; on update only enabled is required, the rest are optional and patch the existing configuration.

Example request

{
"label": "Updated Newsletter Subscribers",
"description": "Updated main newsletter contact list",
"color": "#b6d8d5"
}

Response

Returns 200 with the full updated contact list, in the same shape as Get contact list — including the sorted_fields field schema — with one difference: the welcome-email and double opt-in references come back as ids rather than embedded objects.

Field on this responseEquivalent on Get contact list
welcome_email_template_idwelcome_email_template (full object)
welcome_sender_profile_idwelcome_sender_profile (full object)
double_opt_in.email_template_iddouble_opt_in.email_template (full object)
double_opt_in.sender_profile_iddouble_opt_in.sender_profile (full object)

Call Get contact list after updating if you need the expanded template and sender profile objects.

Possible response codes

Status codeDescription
200Contact list updated successfully.
400The color is not in the allowed palette, or the welcome-email / double opt-in settings are inconsistent.
401Unauthorized.
404Contact list not found.
422blueprint_id is not a valid UUID, or the body failed validation.
429Rate limit exceeded. See Rate limiting.