Skip to main content
POST
Create a training-session rule

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Required string length: 1 - 200
workflowType
enum<string>
required
Available options:
calendar,
regulatory
complianceType
enum<string>
required
Available options:
registry,
maintenance
validityDuration
string
required
Pattern: ^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$
thresholdPercent
integer
required
Required range: 0 <= x <= 100
description
string
Maximum string length: 2000
siteScopes
object[]

Response

Default Response

id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$