Create Connection Endpoint
POST
/v1/admin/connections
const url = 'http://localhost:8080/v1/admin/connections';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","protocol":"s3","direction":"source","config":{},"credentials":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/v1/admin/connections \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "protocol": "s3", "direction": "source", "config": {}, "credentials": {} }'Request Body required
Section titled “Request Body required ” Media type application/json
CreatePayload
object
name
required
Name
string
protocol
required
Protocol
string
direction
required
Direction
string
config
required
Config
object
key
additional properties
any
credentials
required
Credentials
object
key
additional properties
any
Responses
Section titled “ Responses ”Successful Response
Media type application/json
Response Create Connection Endpoint V1 Admin Connections Post
object
key
additional properties
any
Example generated
{}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}