---
title: "Add targets to a segment"
method: POST
path: "/segments/{id}/addtargets"
tags: ["product:chat"]
---

# Add targets to a segment

`POST /segments/{id}/addtargets`

Add targets to a segment

## Path parameters

- `id` string, required

## Request body

- AddSegmentTargetsRequest, nullable
  - `target_ids` string[], required — Target IDs

## Response `201`

Response

- Response, nullable — Basic response information
  - `duration` string, required — Duration of the request in milliseconds

## Other responses

- `400` — Bad request
- `429` — Too many requests

---

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