Skip to main content
POST
Train model (Anomaly)

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
integer
required

Project ID

learnId
integer
required

Learn Block ID, use the impulse functions to retrieve the ID

Body

application/json
axes
integer[]
required

Which axes (indexes from DSP script) to include in the training set

Example:
minimumConfidenceRating
number
required

DEPRECATED, use "thresholds" instead. Minimum confidence rating required before tagging as anomaly

Example:

0.3

clusterCount
integer

Number of clusters for K-means, or number of components for GMM

Example:

32

skipEmbeddingsAndMemory
boolean

If set, skips creating embeddings and measuring memory (used in tests)

thresholds
object[]

List of configurable thresholds for this block.

Response

200 - application/json

OK

success
boolean
required

Whether the operation succeeded

id
integer
required

Job identifier. Status updates will include this identifier.

Example:

12873488112

error
string

Optional error description (set if 'success' was false)