MongoDB
- PATCH
- /workspaces
- /:workspace
- /targets
- /:target_id
Update MongoDB target configuration
Request example
curl -X PATCH "https://api.buddy.works/workspaces/:workspace/targets/:target_id" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"type": "MONGO",
"identifier": "production-mongo",
"name": "Production MongoDB",
"host": "mongo.example.com",
"port": "27017",
"database": "myapp",
"auth_source": "admin",
"auth": {
"method": "PASSWORD",
"username": "deploy_user",
"password": "secured"
},
"proxy": {
"name": "ssh-bastion"
},
"tags": [
"mongodb"
]
}'STATUS200 OK