PostgreSQL
- POST
- /workspaces
- /:workspace
- /targets
Create a new PostgreSQL deployment target
Request example
curl -X POST "https://api.buddy.works/workspaces/:workspace/targets" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"type": "POSTGRESQL",
"identifier": "production-pg",
"name": "Production PostgreSQL",
"host": "pg.example.com",
"port": 5432,
"database": "myapp",
"auth": {
"method": "PASSWORD",
"username": "deploy_user",
"password": "secured"
},
"tags": [
"postgresql",
"production"
]
}'STATUS201 Created