---
title: "Delete from static segment"
method: POST
path: "/api/v1/group/{id}/contacts/detach"
tags: ["Contacts"]
---

# Delete from static segment

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

## 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/detach`
- Auth: HTTP basic

The method deletes contacts from a static segment by contact ids or external customer ids. If don't specify any ids, all contacts will be deleted from the segment.

## 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)
