Model Variables

List Model Variables

get

Retrieves a paginated list of variables associated with a model. Note: Model variables, filter values, and notes can all be attached to different entity types via model_type and model_id.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Query parameters
filter[variable_id]stringOptional

Filter results by variable_id.

filter[model_type]stringOptional

Filter results by model_type.

filter[model_id]stringOptional

Filter results by model_id.

includestringOptional

Comma-separated list of relationships to include. Available: model, variable

sortstringOptional

Sort field. Prefix with - for descending. Available: variable_id, model_type, model_id

pageinteger · min: 1Optional

Page number for pagination.

Default: 1
per_pageinteger · min: 1 · max: 100Optional

Number of results per page.

Responses
chevron-right
200

Successful response

application/json
get
/api/v1/model-variables

Create Model Variable

post

Creates a new variable association for a model. Note: Model variables, filter values, and notes can all be attached to different entity types via model_type and model_id.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Body
variable_idstringRequired
aliasstring · nullableOptional
configurablestringOptional
requiredstringOptional
advancedstringOptional
model_typestringRequired
model_idstringRequired
Responses
chevron-right
200

Successful response

application/json
post
/api/v1/model-variables

Get Model Variable

get

Retrieves the details of a specific model variable. Note: Model variables, filter values, and notes can all be attached to different entity types via model_type and model_id.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
model_variablestringRequired

The model variable identifier.

Query parameters
filter[variable_id]stringOptional

Filter results by variable_id.

filter[model_type]stringOptional

Filter results by model_type.

filter[model_id]stringOptional

Filter results by model_id.

includestringOptional

Comma-separated list of relationships to include. Available: model, variable

sortstringOptional

Sort field. Prefix with - for descending. Available: variable_id, model_type, model_id

pageinteger · min: 1Optional

Page number for pagination.

Default: 1
per_pageinteger · min: 1 · max: 100Optional

Number of results per page.

Responses
chevron-right
200

Successful response

application/json
get
/api/v1/model-variables/{model_variable}

Update Model Variable

put

Updates an existing model variable. Note: Model variables, filter values, and notes can all be attached to different entity types via model_type and model_id.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
model_variablestringRequired

The model variable identifier.

Body
aliasstring · nullableOptional
configurablestringOptional
requiredstringOptional
advancedstringOptional
Responses
chevron-right
200

Successful response

application/json
put
/api/v1/model-variables/{model_variable}

Delete Model Variable

delete

Permanently deletes a specific model variable. Note: Model variables, filter values, and notes can all be attached to different entity types via model_type and model_id.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
model_variablestringRequired

The model variable identifier.

Responses
chevron-right
200

Successful response

application/json
messagestringOptional
delete
/api/v1/model-variables/{model_variable}

Last updated

Was this helpful?