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

# Update Manual ReQL Segment

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

Update definition of 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. Segment with given ID does not exist in the Segmentation.

---

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