cURL
curl --request POST \ --url https://api.chartbrew.com/team/{team_id}/connections/{connection_id}/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form sslCa=@example-file \ --form sslCert=@example-file \ --form sslKey=@example-file
{ "id": 123, "team_id": 123, "project_ids": [ "<string>" ], "oauth_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "type": "mongodb", "subType": "timescaledb", "active": true, "host": "<string>", "dbName": "<string>", "port": "<string>", "username": "<string>", "password": "<string>", "srv": false, "options": {}, "connectionString": "<string>", "authentication": { "type": "bearer_token", "token": "<string>", "user": "<string>", "pass": "<string>" }, "firebaseServiceAccount": {}, "ssl": false, "sslMode": "require", "sslCa": "<string>", "sslCert": "<string>", "sslKey": "<string>", "schema": {} }
Update the files of a connection
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the team
ID of the connection
Updated connection
The response is of type object.
object