POST groups/addContacts

Add one or more existing contacts to a group.

* required

Parameters

Name Type Description
groupID * integer Unique ID of a group. Contacts cannot be added to dynamic groups.
contactIDs * array[integer] Unique ID of a contact
1000

Response Data

If a contact fails to get added to the group for any reason, details will be provided in the errors array within contactResults for that particular row.
Name Type Description
totalErrors int Number of contacts not added to the group (check contactResults for specific errors)
totalSuccess int Number of contacts added to the group
contactResults array Array of objects containing results for each row from the contactIDs argument (the order will be the same). Each row will contain: contactID, success, and errors. e.g "contactsResults": [{"contactID": 123, "success": 1, "errors": []}]

Permissions

Method requires the Contacts (Edit) permission

Example Calls

All contacts added

POST
/groups/addContacts
cURL
Copy
Response Data

Some contacts failed to get added

Individual rows in the contactIDs array can fail independently from the API call itself. If a contact fails to get added to the group, it will still be included in the "contactResults" array but success will be 0 and the errors array will contain details about the error.

POST
/groups/addContacts
cURL
Copy
Response Data

API Console

The console uses production data, so BE CAREFUL!
POST
groups/addContacts
Request Body
{"contactIDs":"","groupID":0}
Access token: *