project
v1
POST /api/v1/project/projects/{id}/cluster/
Cluster Project Documents
Params:
- method: str[KMeans, MiniBatchKMeans, Birch, DBSCAN]
- cluster_by: str[term, date, text, definition, duration, party,
geoentity, currency_name, currency_value]
- n_clusters: int
- force: bool (optional) - force clustering if uncompleted tasks exist
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
A unique integer value identifying this project.
Request body
Example request
{
"n_clusters": 0,
"method": "kmeans",
"require_confirmation": true,
"force": true,
"cluster_by": "term"
}Response
Example response
{
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"project_clustering_id": 0
}Changes
No recorded changes to this operation across all 5 revisions of this API.