---
title: "Run Clustering"
method: POST
path: "/v1/projects/{project_id}/clustering/run"
tags: ["Clustering"]
---

# Run Clustering

`POST /v1/projects/{project_id}/clustering/run`

## Request

- Base URL: `https://spss.insightgenius.io` (the document declares no server; this is the origin it was published from)
- URL: `https://spss.insightgenius.io/v1/projects/{project_id}/clustering/run`
- Auth: none declared

Run k-means or hierarchical clustering.

## Path parameters

- `project_id` string, uuid, required

## Request body

- ClusterRequest
  - `variables` string[], required
  - `method` string
  - `n_clusters` integer
  - `linkage` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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