---
title: "Remove users from a manually managed audience segment"
method: PUT
path: "/api/segments/{id}/remove_users"
tags: ["segments"]
---

# Remove users from a manually managed audience segment

`PUT /api/segments/{id}/remove_users`

Remove users in bulk from the specified manual audience segment.

### Bulk Update Behavior:
- Accepts a JSON array of `user_ids` in the request body.
- Returns successes (users successfully removed) and failures (users who were not members of the segment).

## Path parameters

- `id` integer, required

## Request body

- SegmentUserIds
  - `user_ids` integer[]

## Response `200`

Result of removing the users to the segment.

## Other responses

- `401` — Unauthorized
- `404` — Audience Segment Not Found
- `422` — Unprocessable Entity

---

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