Workspace data source accounts API

Create workspace credentials

POST /api/workspaces/:workspace_id/data_source_account

Parameters

Name Description
workspace_id The id of a workspace
data_source_id The id of a data source
db_username User name for connection
db_password Password for connection

Request

Headers

Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: _session_id=MzBDV283T2dvWXUzWTAwRkR4VjlmY0c1WlpvaGh0MEFIYnY3MDVDMDBWMnVySHhuaDUzeTA2SGRHOGNiSWVQNkNoOGZRR1d3akNYVkNUZHovR2pjVlQ3aFF3TjZXN0YrWWtxQi9ISjZOZS9ZM3AyM1BjVFdWWWw0bm42VElSNGV6N0lQMlVvL1oxU1hra0lMclFOSk5KQzlKbEJ6WDBQVHZqcU5GTnJMdkw1QldldVliZGd4OHVNY3ROWG1vQVlNTHNHa2NjRnZKOThTeDM4clhBMXBkcmgydndxc09oQU5xK1NERllaZzViSFRNZ0dMUUZMcGJMMmlhVVUzd1REdE4zVnRVUlIvcTRPemVLdU1yK2RVZmtCemRPQXY5Ti9BZ01VQmpHU2VKV05NTmJzWHZ2VXpTSzNLUGJpOUFmSXQ3bkx6bXZKQ2VtOXlsVXFlc0lPMzI0eURGVXJOZzhZeit3VlBvN2phR2oxWWo5YktnOUlqNW5VY0xQZ24xUVFka0JFWW9SVjE0TmVxdnAxMVZWQ2VTeUc2UzlseDhoeG12WVVzenl5bGg5Zz0tLUhPWkVibU40Z1BmcFdwd1JjVFJRcXc9PQ%3D%3D--e2ad7797bf2bf1bf38359607dbdb96d2720e8491

Route

POST /api/workspaces/1000008/data_source_account

Body

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
ETag: W/"4ed685b53651ed8561525520a5283325"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _session_id=bjJiZ2NSNE8rdk1rUUlrNXk3ZHIvSktvL3JXV1lZaEVVZXhLUzlZa0wzODN0Q09iNHNuWVNpUGFkcGZkQnVYS3kxV3JFSVRZWFhRSkNuMVU4ckQ3bEJETzc3Y0I0WmlCRnljTGFnZWY1SWwrVHlpR1U2ZzZSYUJzL29JTVEvMm5oVFRUbnliNUltT1huMVRoK09LUnJBQXZyekVhTlBHZXZ2RnRIdzlMQUZSNW94cDVjQlZmbGVTTlRGNGZVYkN5RG1LaU5oenIxaWw5TG1WaDNyQk1oY1FVYWdwWnkza3JOeTZLS0pPZlVvZ3ZjT3lUSzlmWFo3N1U5QnJJeUxKa2haUnZscUtEajMxNGRjUjlYUllkNGhhZkgvRXFnYUpRbEdnYm1EcTkrT1FINWVHeWc2RUY0QlZLUW8rWHp0dXBKM1VNMTQ4OVFNWW52emVPUjNGZlRvYUZTQ1hYa093eGplZko3c0tZemFNZUw1Nmlrd1hBWW1hWXhMckY2V0ZmREtIRWM3bkNONGw3d002UmRvbU9rL2tTN3M2WE1jLzA0aUFTY0plQkxPQ3F3ZmhVQldCcU1WODVGc0t3THYvbzhhaEdDaU96aGc0eGwxNkVjYnRVVUE9PS0tUG5VUW5XejYxcUxmcHZxTW84OXlnQT09--b9606a988e07de942e2ff0710cfe830a0ea4ae92; path=/; HttpOnly
X-Request-Id: cf86f6d2-304a-48f9-a5ec-3b017d32d03b
X-Runtime: 0.102143
Content-Length: 2631

Status

201 Created

Body