---
title: "Create Data Source"
slug: "create-data-source"
updated: 2026-01-06T19:11:43Z
published: 2026-01-06T19:11:46Z
canonical: "docs.validatar.com/create-data-source"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validatar.com/llms.txt
> Use this file to discover all available pages before exploring further.
# Create Data Source
Post/api/v1/Authoring/data-source
Create a new data source
SecurityAPI Key: x-val-api-tokenHeader parameter namex-val-api-token
API key needed to access endpoints. Each Validatar user can manage their own set of API keys.
Body parameters
Information about the new data source
Expand Allobject namestring Required
The data source name
Min length1
descriptionstring | null
The data source description
environmentIdinteger (int32) Required
The ID of the data source's environment
connectionobject (Configuration.Api.Models.v1.DataSourceConnectionAdd) RequiredengineIdinteger (int32) Required
The data processing engine ID to use for the connection
connectionTypestring RequiredValid values[
"SqlServer",
"OLEDB",
"ODBC",
"Snowflake",
"PostgreSql",
"PythonScript",
"SnowflakeEngine"
]
dataSourceTemplateIdinteger (int32) | null
The data source template ID to use for the connection
dataAgentGroupIdinteger (int32) | null
The data agent group ID to use for the connection
descriptionstring | null
The connection description
configuration
The connection's configuration
OneOfConfiguration.Api.Models.v1.DataSourceConnectionConfigurationDatabaseobject (Configuration.Api.Models.v1.DataSourceConnectionConfigurationDatabase)connectionStringstring Required
The connection configuration's connection string
Min length1
passwordstring | null
The connection configuration's password
Configuration.Api.Models.v1.DataSourceConnectionConfigurationScriptobject (Configuration.Api.Models.v1.DataSourceConnectionConfigurationScript)preExecutionScriptstring | null
The script to run prior to data source executions
postExecutionScriptstring | null
The script to run following data source executions
parameters Array of object (Configuration.Api.Models.v1.DataSourceConnectionParsedParameter) | null
List of parameters associated with the data source script connection
object idinteger (int32)
The ID of the parameter
valuestring | null
The Value of the parameter
hasSecretValueboolean
Whether the parameter has a secret value
clearValueboolean
Whether the parameter should clear its value
resetValueboolean
Whether the parameter should reset its value
Configuration.Api.Models.v1.DataSourceConnectionConfigurationSnowflakeobject (Configuration.Api.Models.v1.DataSourceConnectionConfigurationSnowflake)databaseNamestring Required
The name of the Snowflake database being referenced by the connection
Min length1
schemaNamestring | null
The name of the Snowflake schema being referenced by the connection
projectIds Array of integer | null
The IDs of the projects allowed to use the data source
integer (int32)
permissions Array of object (Configuration.Api.Models.v1.DataSourcePermission) Required
List of permissions to add to the data source
object typestring RequiredValid values[
"User",
"Group"
]
namestring Required
The permission holder name
Min length1
roleSetstring | null
The name of a predefined role set
roles Array of string (Configuration.Api.Models.v1.DataSourceRole) | null
The custom roles to use when the roleSet property is empty
string Valid values[
"ViewMetadata",
"CreateTests",
"RunTests",
"ViewTestResults",
"RunProfileSets",
"ManagePermissions",
"ManageConnections",
"ManageDataProfiling",
"ExportTestResults"
]
Expand Allobject namestring Required
The data source name
Min length1
descriptionstring | null
The data source description
environmentIdinteger (int32) Required
The ID of the data source's environment
connectionobject (Configuration.Api.Models.v1.DataSourceConnectionAdd) RequiredengineIdinteger (int32) Required
The data processing engine ID to use for the connection
connectionTypestring RequiredValid values[
"SqlServer",
"OLEDB",
"ODBC",
"Snowflake",
"PostgreSql",
"PythonScript",
"SnowflakeEngine"
]
dataSourceTemplateIdinteger (int32) | null
The data source template ID to use for the connection
dataAgentGroupIdinteger (int32) | null
The data agent group ID to use for the connection
descriptionstring | null
The connection description
configuration
The connection's configuration
OneOfConfiguration.Api.Models.v1.DataSourceConnectionConfigurationDatabaseobject (Configuration.Api.Models.v1.DataSourceConnectionConfigurationDatabase)connectionStringstring Required
The connection configuration's connection string
Min length1
passwordstring | null
The connection configuration's password
Configuration.Api.Models.v1.DataSourceConnectionConfigurationScriptobject (Configuration.Api.Models.v1.DataSourceConnectionConfigurationScript)preExecutionScriptstring | null
The script to run prior to data source executions
postExecutionScriptstring | null
The script to run following data source executions
parameters Array of object (Configuration.Api.Models.v1.DataSourceConnectionParsedParameter) | null
List of parameters associated with the data source script connection
object idinteger (int32)
The ID of the parameter
valuestring | null
The Value of the parameter
hasSecretValueboolean
Whether the parameter has a secret value
clearValueboolean
Whether the parameter should clear its value
resetValueboolean
Whether the parameter should reset its value
Configuration.Api.Models.v1.DataSourceConnectionConfigurationSnowflakeobject (Configuration.Api.Models.v1.DataSourceConnectionConfigurationSnowflake)databaseNamestring Required
The name of the Snowflake database being referenced by the connection
Min length1
schemaNamestring | null
The name of the Snowflake schema being referenced by the connection
projectIds Array of integer | null
The IDs of the projects allowed to use the data source
integer (int32)
permissions Array of object (Configuration.Api.Models.v1.DataSourcePermission) Required
List of permissions to add to the data source
object typestring RequiredValid values[
"User",
"Group"
]
namestring Required
The permission holder name
Min length1
roleSetstring | null
The name of a predefined role set
roles Array of string (Configuration.Api.Models.v1.DataSourceRole) | null
The custom roles to use when the roleSet property is empty
string Valid values[
"ViewMetadata",
"CreateTests",
"RunTests",
"ViewTestResults",
"RunProfileSets",
"ManagePermissions",
"ManageConnections",
"ManageDataProfiling",
"ExportTestResults"
]
Expand Allobject namestring Required
The data source name
Min length1
descriptionstring | null
The data source description
environmentIdinteger (int32) Required
The ID of the data source's environment
connectionobject (Configuration.Api.Models.v1.DataSourceConnectionAdd) RequiredengineIdinteger (int32) Required
The data processing engine ID to use for the connection
connectionTypestring RequiredValid values[
"SqlServer",
"OLEDB",
"ODBC",
"Snowflake",
"PostgreSql",
"PythonScript",
"SnowflakeEngine"
]
dataSourceTemplateIdinteger (int32) | null
The data source template ID to use for the connection
dataAgentGroupIdinteger (int32) | null
The data agent group ID to use for the connection
descriptionstring | null
The connection description
configuration
The connection's configuration
OneOfConfiguration.Api.Models.v1.DataSourceConnectionConfigurationDatabaseobject (Configuration.Api.Models.v1.DataSourceConnectionConfigurationDatabase)connectionStringstring Required
The connection configuration's connection string
Min length1
passwordstring | null
The connection configuration's password
Configuration.Api.Models.v1.DataSourceConnectionConfigurationScriptobject (Configuration.Api.Models.v1.DataSourceConnectionConfigurationScript)preExecutionScriptstring | null
The script to run prior to data source executions
postExecutionScriptstring | null
The script to run following data source executions
parameters Array of object (Configuration.Api.Models.v1.DataSourceConnectionParsedParameter) | null
List of parameters associated with the data source script connection
object idinteger (int32)
The ID of the parameter
valuestring | null
The Value of the parameter
hasSecretValueboolean
Whether the parameter has a secret value
clearValueboolean
Whether the parameter should clear its value
resetValueboolean
Whether the parameter should reset its value
Configuration.Api.Models.v1.DataSourceConnectionConfigurationSnowflakeobject (Configuration.Api.Models.v1.DataSourceConnectionConfigurationSnowflake)databaseNamestring Required
The name of the Snowflake database being referenced by the connection
Min length1
schemaNamestring | null
The name of the Snowflake schema being referenced by the connection
projectIds Array of integer | null
The IDs of the projects allowed to use the data source
integer (int32)
permissions Array of object (Configuration.Api.Models.v1.DataSourcePermission) Required
List of permissions to add to the data source
object typestring RequiredValid values[
"User",
"Group"
]
namestring Required
The permission holder name
Min length1
roleSetstring | null
The name of a predefined role set
roles Array of string (Configuration.Api.Models.v1.DataSourceRole) | null
The custom roles to use when the roleSet property is empty
string Valid values[
"ViewMetadata",
"CreateTests",
"RunTests",
"ViewTestResults",
"RunProfileSets",
"ManagePermissions",
"ManageConnections",
"ManageDataProfiling",
"ExportTestResults"
]
Expand Allobject namestring Required
The data source name
Min length1
descriptionstring | null
The data source description
environmentIdinteger (int32) Required
The ID of the data source's environment
connectionobject (Configuration.Api.Models.v1.DataSourceConnectionAdd) RequiredengineIdinteger (int32) Required
The data processing engine ID to use for the connection
connectionTypestring RequiredValid values[
"SqlServer",
"OLEDB",
"ODBC",
"Snowflake",
"PostgreSql",
"PythonScript",
"SnowflakeEngine"
]
dataSourceTemplateIdinteger (int32) | null
The data source template ID to use for the connection
dataAgentGroupIdinteger (int32) | null
The data agent group ID to use for the connection
descriptionstring | null
The connection description
configuration
The connection's configuration
OneOfConfiguration.Api.Models.v1.DataSourceConnectionConfigurationDatabaseobject (Configuration.Api.Models.v1.DataSourceConnectionConfigurationDatabase)connectionStringstring Required
The connection configuration's connection string
Min length1
passwordstring | null
The connection configuration's password
Configuration.Api.Models.v1.DataSourceConnectionConfigurationScriptobject (Configuration.Api.Models.v1.DataSourceConnectionConfigurationScript)preExecutionScriptstring | null
The script to run prior to data source executions
postExecutionScriptstring | null
The script to run following data source executions
parameters Array of object (Configuration.Api.Models.v1.DataSourceConnectionParsedParameter) | null
List of parameters associated with the data source script connection
object idinteger (int32)
The ID of the parameter
valuestring | null
The Value of the parameter
hasSecretValueboolean
Whether the parameter has a secret value
clearValueboolean
Whether the parameter should clear its value
resetValueboolean
Whether the parameter should reset its value
Configuration.Api.Models.v1.DataSourceConnectionConfigurationSnowflakeobject (Configuration.Api.Models.v1.DataSourceConnectionConfigurationSnowflake)databaseNamestring Required
The name of the Snowflake database being referenced by the connection
Min length1
schemaNamestring | null
The name of the Snowflake schema being referenced by the connection
projectIds Array of integer | null
The IDs of the projects allowed to use the data source
integer (int32)
permissions Array of object (Configuration.Api.Models.v1.DataSourcePermission) Required
List of permissions to add to the data source
object typestring RequiredValid values[
"User",
"Group"
]
namestring Required
The permission holder name
Min length1
roleSetstring | null
The name of a predefined role set
roles Array of string (Configuration.Api.Models.v1.DataSourceRole) | null
The custom roles to use when the roleSet property is empty
string Valid values[
"ViewMetadata",
"CreateTests",
"RunTests",
"ViewTestResults",
"RunProfileSets",
"ManagePermissions",
"ManageConnections",
"ManageDataProfiling",
"ExportTestResults"
]
Responses200
OK
object idinteger (int32)
The ID of the added data source
namestring | null
The name of the added data source
400
Bad Request
object errors Array of string | null string
403
Forbidden