Update a datasource connection

PATCH {{baseUrl}}/api/datasources/connections/:id

Update a datasource connection.

Request Params

KeyDatatypeRequiredDescription
fieldsnullComma-separated, top-level field whitelist that allows the client to selectively retrieve part of the response model. If specified, extra filtering is applied, and for top-level object (if root model is an array, each array element), only the listed fields are kept in the response. For example, "id,elements" keeps only the "id" field and whole "elements" array field, omitting all other fields in the top-level response model.

Request Body

{"operationList"=>[{"op"=>"replace", "path"=>"/charEncodingWindows", "value"=>"multibyte"}]}

HEADERS

KeyDatatypeRequiredDescription
X-MSTR-AuthTokenstring(Required) Authorization token
Content-Typestring

RESPONSES

status: OK

{"name":"Test Datasource Connection","id":"B5FBC35F1B439F5A4E6AC4B072193C96","description":"Test datasource connection.","acg":255,"executionMode":"synchronous","maxCancelAttemptTime":60,"maxQueryExeTime":0,"maxConnectionAttemptTime":60,"connectionLifetime":36000,"connectionIdleTimeout":60000,"charEncodingWindows":"multibyte","charEncodingUnix":"utf8","tablePrefix":"","connectionString":"","parameterizedQueries":false,"extendedFetch":false,"database":{"login":{},"type":"sql_server","version":"default"},"driverType":"odbc","oauthParameter":""}