---
title: "Add users to a manually managed audience segment"
method: PUT
path: "/api/segments/{id}/add_users"
tags: ["segments"]
---

# Add users to a manually managed audience segment

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

Add users in bulk to the specified manual audience segment.

### Bulk Update Behavior:
- Accepts a JSON array of `user_ids` in the request body.
- Returns a list of successes and failures. Successful additions include users already present in the segment.

## Path parameters

- `id` integer, required

## Request body

- SegmentUserIds
  - `user_ids` integer[]

## Response `200`

Result of adding 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/revisions/bcdd2cdd127c/schema)
