POST
/
api
/
v1
/
data_sources
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
}'
{
  "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",
    "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
}

Authorizations

Authorization
string
header
required

Use the 'Authorization' header with the format 'Key <api-key>'

Body

application/json
name
string
required
type
string
required
Allowed value: "bigquery"
catalog_exclude_list
string | null
catalog_include_list
string | null
created_from
string | null
data_retention_days
integer | null
disable_profiling
boolean | null
default:
false
disable_schema_indexing
boolean | null
default:
false
float_tolerance
number | null
default:
0
groups
object | null
hidden
boolean | null
default:
false
id
integer | null
is_paused
boolean | null
default:
false
last_test
object | null
lineage_schedule
string | null
max_allowed_connections
integer | null
oauth_dwh_active
boolean | null
options
object | null
profile_exclude_list
string | null
profile_include_list
string | null
profile_schedule
string | null
queue_name
string | null
scheduled_queue_name
string | null
schema_indexing_schedule
string | null
schema_max_age_s
integer | null
secret_id
integer | null
source
string | null
temp_schema
string | null
view_only
boolean | null
default:
false

Response

200
application/json
Successful Response
name
string
required
type
string
required
Allowed value: "bigquery"
catalog_exclude_list
string | null
catalog_include_list
string | null
created_from
string | null
data_retention_days
integer | null
disable_profiling
boolean | null
default:
false
disable_schema_indexing
boolean | null
default:
false
float_tolerance
number | null
default:
0
groups
object | null
hidden
boolean | null
default:
false
id
integer | null
is_paused
boolean | null
default:
false
last_test
object | null
lineage_schedule
string | null
max_allowed_connections
integer | null
oauth_dwh_active
boolean | null
options
object | null
profile_exclude_list
string | null
profile_include_list
string | null
profile_schedule
string | null
queue_name
string | null
scheduled_queue_name
string | null
schema_indexing_schedule
string | null
schema_max_age_s
integer | null
secret_id
integer | null
source
string | null
temp_schema
string | null
view_only
boolean | null
default:
false