---
title: "Attach contact to static segment"
method: POST
path: "/api/v1/group/{id}/contacts/attach"
tags: ["Contacts"]
---

# Attach contact to static segment

`POST /api/v1/group/{id}/contacts/attach`

Attach contact to static segment by contact ids or external customer ids

## Path parameters

- `id` integer, required

## Request body

- ModifyContactsInGroup
  - `contactIds` integer[] — The list of attach/detach contact ids to static group (max. 500).
  - `externalCustomerIds` string[] — The list of attach/detach external contacts ids to static group (max. 500).

## Response `200`

---

[API](https://skmtc.net/esputnik/apis/esputnik-com.md) · [All operations](https://skmtc.net/esputnik/apis/esputnik-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/esputnik/esputnik-com/versions/1c4afd7ba72a/schema)
