---
title: "Add Manual ReQL Segment"
method: PUT
path: "/{databaseId}/segmentations/manual-reql/{segmentationId}/segments/{segmentId}"
tags: ["Segmentations Definition"]
---

# Add Manual ReQL Segment

`PUT /{databaseId}/segmentations/manual-reql/{segmentationId}/segments/{segmentId}`

Adds a new Segment into a Manual ReQL Segmentation.

The new Segment is defined by a [ReQL](https://docs.recombee.com/reql) filter that returns `true` for an item in case that this item belongs to the segment.

## Path parameters

- `databaseId` string, required
- `segmentationId` string, required
- `segmentId` string, required

## Request body

- ManualReQLSegmentParameters
  - `filter` string, required — ReQL filter that returns `true` for items that belong to this Segment. Otherwise returns `false`.
  - `title` string — Human-readable name of the Segment that is shown in the Recombee Admin UI.

## Response `201`

successful operation

## Other responses

- `400` — segmentationId or segmentId does not match ^[a-zA-Z0-9_\-:@\.]+$. Segmentation is of wrong type.
- `404` — Segmentation with given ID does not exist.

---

[API](https://skmtc.dev/recombee/apis/recombee-api.md) · [All operations](https://skmtc.dev/recombee/apis/recombee-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/recombee/recombee-api/revisions/a9c9c33eb2e8/schema)
