curl --request POST \
--url https://app.datafold.com/api/v1/data_sources \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"catalog_exclude_list": "<string>",
"catalog_include_list": "<string>",
"created_from": "<string>",
"data_retention_days": 123,
"disable_profiling": true,
"disable_schema_indexing": true,
"float_tolerance": 123,
"groups": {},
"hidden": true,
"id": 123,
"is_paused": true,
"last_test": {
"results": [
{
"result": "<any>",
"status": "needs_confirmation",
"step": "connection"
}
],
"tested_at": "2023-11-07T05:31:56Z"
},
"lineage_schedule": "<string>",
"max_allowed_connections": 123,
"name": "<string>",
"oauth_dwh_active": true,
"options": {
"extraProjectsToIndex": "project1\nproject2",
"jsonKeyFile": "<string>",
"jsonOAuthKeyFile": "<string>",
"location": "US",
"projectId": "<string>",
"totalMBytesProcessedLimit": 123,
"useStandardSql": true,
"userDefinedFunctionResourceUri": "gs://bucket/date_utils.js"
},
"profile_exclude_list": "<string>",
"profile_include_list": "<string>",
"profile_schedule": "<string>",
"queue_name": "<string>",
"scheduled_queue_name": "<string>",
"schema_indexing_schedule": "<string>",
"schema_max_age_s": 123,
"secret_id": 123,
"source": "<string>",
"temp_schema": "<string>",
"type": "<string>",
"view_only": true
}'