Add all contacts of the given group to the given list of distribution.
Emails can be only sent to contacts that belong to a distribution list.
Remember to provide the authentication HTTP headers as described in the Authenticate using a session key and the Authenticate using a user token sections.
All the query string parameters in URL must be UTF-8 URL Encoded.
user_key / Session_key
POST
https://app.gateway.smsend.it/API/v1.0/REST/list/{list_id}/group/{group_id}?sendoptin={send}
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
list_id | Int | The list ID | Yes | - |
group_id | String | The group ID | Yes | - |
sendoptin | Bool | Send the Opt-in email to the group’s contacts | No | false |
Code | Description |
---|---|
200 | The group has been added to the list |
400 | Other errors, details are in the body |
401 | [Unauthorized] User_key, Token or Session_key are invalid or not provided |
404 | [Not found] The User_key was not found |