---
title: "/groups/group_name/subscribers/:subscriber_id/assign"
method: POST
path: "/groups/group_name/subscribers/{id}/assign"
---

# /groups/group_name/subscribers/:subscriber_id/assign

`POST /groups/group_name/subscribers/{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]

## Path parameters

- `id` integer, required

## Request body

- object
  - `group_name` string — The name of the group that the subscriber will be assigned to.

## Response `200`

200

- object
  - `id` integer
  - `name` string
  - `email` string
  - `sent` integer
  - `opened` integer
  - `clicked` integer
  - `type` string
  - `fields` object[]
    - `key` string
    - `value` string
    - `type` string
  - `date_subscribe` unknown
  - `date_unsubscribe` unknown
  - `date_created` string

## Other responses

- `400` — 400

---

[API](https://skmtc.dev/mailerlite/apis/v2-production.md) · [All operations](https://skmtc.dev/mailerlite/apis/v2-production/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mailerlite/v2-production/revisions/69f06eb37b28/schema)
