v1

latestOpenAPI 3.1.02026-07-2624070.9 KB

/groups/group_name/subscribers/:subscriber_id/assign

Assigns a subscriber to the group with the given name. If the group doesn't exist, it gets created. If multiple groups with the same name exist, the subscriber is assigned to the oldest group. [Rate limited]

post/groups/group_name/subscribers/{id}/assign

Path parameters

idinteger required

The ID of the subscriber to assign to the group

Request body

group_namestring

The name of the group that the subscriber will be assigned to.

Response

200

idinteger
namestring
emailstring
sentinteger
openedinteger
clickedinteger
typestring
{"stackTrail":"paths:/groups/group_name/subscribers/{id}/assign:post:responses:200:content:application/json:schema:properties:date_subscribe","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/groups/group_name/subscribers/{id}/assign:post:responses:200:content:application/json:schema:properties:date_unsubscribe","oasType":"schema","type":"unknown"}
date_createdstring

Example response

{
  "id": 1343965485,
  "name": "John",
  "email": "demo@mailerlite.com",
  "type": "active",
  "fields": [
    {
      "key": "email",
      "value": "demo@mailerlite.com",
      "type": "TEXT"
    }
  ],
  "date_created": "2016-04-04"
}