Connections
Retrieve sample data from the data source
Retrieve sample data from the data source by supplying the connector configuration. The response includes both the schema and sample data.
post/_api/connectors/{connector-name}/sample
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
connector-namestring required
Name of the connector.
Request body
Example request
{
"type": "source",
"config": {
"host": "db.postgres.com",
"port": 5432,
"username": "postgres",
"password": "password"
}
}Response
Successfully retrieved the connnector sample.
Example response
{
"result": [
{
"schema": {
"attributes": [
{
"name": "Name",
"type": "string"
}
]
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.