---
title: "Mcp Consolidate Plural Keys"
method: POST
path: "/v1/mcp/projects/{project_id}/keys/consolidate-plurals"
tags: ["mcp"]
---

# Mcp Consolidate Plural Keys

`POST /v1/mcp/projects/{project_id}/keys/consolidate-plurals`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/mcp/projects/{project_id}/keys/consolidate-plurals`
- Auth: none declared

Merge flat `<base>_<suffix>` keys into one plurals=true key carrying
plural_forms (task 1619 §7). dry_run (default) returns the plan without
applying. Reversible: consolidated siblings go to key trash.

## Path parameters

- `project_id` string, required

## Request body

- ConsolidatePluralsIn
  - `namespace` string, required
  - `dry_run` boolean
  - `base_name` string, nullable: Restrict to one base key (e.g. agents.list.needs). Omit = whole namespace.

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonenta/apis/sonenta-api.md) · [All operations](https://skmtc.dev/sonenta/apis/sonenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonenta/apis/sonenta-api/revisions/f853ea49fb05?raw)
