Connections
Update a connection
Connections
Update a connection
Update a connection by ID
PUT
/
team
/
{team_id}
/
connections
/
{connection_id}
curl --request PUT \
--url https://api.chartbrew.com/team/{team_id}/connections/{connection_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"host": "<string>",
"port": "<string>",
"username": "<string>",
"password": "<string>",
"options": {},
"type": "mongodb",
"subType": "timescaledb",
"authentication": {
"type": "bearer_token",
"token": "<string>",
"user": "<string>",
"pass": "<string>"
},
"firebaseServiceAccount": {},
"ssl": false,
"sslMode": "require",
"schema": {},
"project_ids": [
"<string>"
]
}'
{
"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": {}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
ID of the team
ID of the connection
Body
application/json
Response
200
application/json
Updated connection
The response is of type object
.
curl --request PUT \
--url https://api.chartbrew.com/team/{team_id}/connections/{connection_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"host": "<string>",
"port": "<string>",
"username": "<string>",
"password": "<string>",
"options": {},
"type": "mongodb",
"subType": "timescaledb",
"authentication": {
"type": "bearer_token",
"token": "<string>",
"user": "<string>",
"pass": "<string>"
},
"firebaseServiceAccount": {},
"ssl": false,
"sslMode": "require",
"schema": {},
"project_ids": [
"<string>"
]
}'
{
"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": {}
}