---
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`

## Request

- Base URL: `https://yespo.io` (the document declares no server; this is the origin it was published from)
- URL: `https://yespo.io/api/v1/group/{id}/contacts/attach`
- Auth: HTTP basic

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.dev/yespo/apis/yespo-api.md) · [All operations](https://skmtc.dev/yespo/apis/yespo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yespo/apis/yespo-api/revisions/b662f92b6c40?raw)
