---
title: "Update Auto ReQL Segmentation"
method: POST
path: "/{databaseId}/segmentations/auto-reql/{segmentationId}"
tags: ["Segmentations Definition"]
---

# Update Auto ReQL Segmentation

`POST /{databaseId}/segmentations/auto-reql/{segmentationId}`

Update an existing Segmentation.

## Path parameters

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

## Request body

- UpdateAutoReQLSegmentationParameters
  - `expression` string — ReQL expression that returns for each item a set with IDs of segments to which the item belongs
  - `title` string — Human-readable name that is shown in the Recombee Admin UI.
  - `description` string — Description that is shown in the Recombee Admin UI.

## Response `201`

successful operation

## Other responses

- `400` — segmentationId does not match ^[a-zA-Z0-9_\-:@\.]+$. ReQL expression is invalid. Given Segmentation is of different 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)
