Create connection
documentedCreate a new database connection (e.g., Postgres, MySQL, BigQuery, etc.).
POST /api/v1/connectionsConnectionsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{$instance}}.omniapp.co/api/v1/connections" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"dialect": "{{$dialect}}",
"name": "{{$name}}",
"host": "{{$host}}",
"port": {{$port}},
"database": "{{$database}}",
"username": "{{$username}}",
"passwordUnencrypted": "{{$password}}",
"region": "{{$region}}",
"defaultSchema": "{{$default_schema}}",
"includeSchemas": "{{$include_schemas}}",
"includeOtherCatalogs": "{{$include_other_catalogs}}",
"queryTimeoutSeconds": {{$query_timeout}},
"maxBillingBytes": "{{$max_billing_bytes}}",
"baseRole": "{{$base_role}}",
"warehouse": "{{$warehouse}}",
"scratchSchema": "{{$scratch_schema}}",
"systemTimezone": "{{$system_timezone}}",
"queryTimezone": "{{$query_timezone}}",
"allowsUserSpecificTimezones": {{$allows_user_specific_timezones}}
}'"