🕐 1 min read
For data sources that require non-embedded credentials, you must add the following fields to your connection object in the body of the request.
databaseUsername
databasePassword
You can add environment variables:
{
"connection": {
"tableauServerName": "",
"siteId": "",
"datasource": "",
"databaseUsername": "",
"databasePassword": ""
},
"query": {
"columns": [
{
"columnName": "Category1"
}
]
}
}
Or you can pass the variables directly:
{
"connection": {
"tableauServerName": "",
"siteId": "",
"datasource": "",
"databaseUsername": "test",
"databasePassword": "password"
},
"query": {
"columns": [
{
"columnName": "Category1"
}
]
}
}