Creates a new variable within the specified analysis model.
Variable keys must be unique within the same model (case-insensitive). If category_id is provided, it must reference an existing category in the same model.
Note: Variables can be added to models that already have call analyses.
Requires scope: write:model-variable
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The analysis model ID
Request body for creating or updating a variable.
Unique identifier key for this variable within the model
1 - 128"greeting_quality"
Data type: STRING, INTEGER, DECIMAL, BOOLEAN, DATE, TIME, or DATETIME
STRING, INTEGER, DECIMAL, BOOLEAN, DATE, TIME, DATETIME Whether this variable must have a value in analysis results
true
Human-readable display name for UI presentation
128"Greeting Quality"
Description of what this variable measures
256"Evaluates the quality and professionalism of the greeting"
Weight for scoring calculations. Higher weight = more impact on score.
x >= 010
Display order within the category or model
x >= 01
ID of the category this variable belongs to. Must exist in the same model.
1
Successful Response
Response model for variable.
Unique identifier
1
Parent model ID
1
Variable key
"greeting_quality"
Data type
STRING, INTEGER, DECIMAL, BOOLEAN, DATE, TIME, DATETIME Whether this variable is required
Whether the variable is active
Creation timestamp
Creator identifier
Category ID if assigned
Human-readable display name
Variable description
Scoring weight
Display order
Last update timestamp
Last updater identifier