Test Data Source Configuration
This endpoint allows you to test if a data source has been configured correctly.
More specifically, the API will attempt to connect to the data source as it would when the PAIS backend performs an indexing. This allows you to verify whether the stored settings and credentials are correct and the PAIS system can connect to the data source APIs.
You can use this endpoint, for example, to ensure that updates to settings or credentials will allow the next indexing to access the data source.
To test the configuration before creating the data source, you can instead use the
/test-connection
endpoint.
data_source_id
Outcome of validating the configuration of the data source.
{
"status": "string",
"detail": "string"
}
Data source connectivity result.
Details about the connectivity result, if any.
Invalid data source ID.
Validation Error
"HTTPValidationError Object"
detail
curl -H 'Authorization: <value>' https://{api_host}/api/v1/control/data-sources/test-connection/{data_source_id}