Create a source
deprecated
This endpoint has been deprecated and may be removed in future versions of the API.
Creates a new source object. A source is the physical location of a dataset such as a table in PostgreSQL, or topic in Kafka. A source enables the grouping of physical datasets to their physical source.
Path Parameters
source string required
Possible values: <= 1024 characters
The name of the source.
application/json
Request Body
type string required
The type of the source.
connectionUrl URL required
The URL to the location of the source.
description string
The description of the source.
Responses
- 200
OK
application/json
Schema
Example (from schema)
Schema
type string
The type of the source.
name string
The name of the source.
createdAt date-time
An ISO-8601 timestamp representing the date/time the source was created.
updatedAt date-time
An ISO-8601 timestamp representing the date/time the source was updated.
connectionUrl URL
The URL to the location of the source.
description string
The description of the dataset.
{
"type": "POSTGRESQL",
"name": "my-source",
"createdAt": "2019-05-09T19:49:24.201361Z",
"updatedAt": "2019-05-09T19:49:24.201361Z",
"connectionUrl": "jdbc:postgresql://db.example.com/mydb",
"description": "My first source!"
}
PUT /sources/:source
Request
Request
curl / cURL
curl -L -X PUT 'http://localhost:5000/api/v1/sources/:source' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "POSTGRESQL",
"connectionUrl": "jdbc:postgresql://db.example.com/mydb",
"description": "My first source!"
}'
python / requests
curl -L -X PUT 'http://localhost:5000/api/v1/sources/:source' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "POSTGRESQL",
"connectionUrl": "jdbc:postgresql://db.example.com/mydb",
"description": "My first source!"
}'
go / native
curl -L -X PUT 'http://localhost:5000/api/v1/sources/:source' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "POSTGRESQL",
"connectionUrl": "jdbc:postgresql://db.example.com/mydb",
"description": "My first source!"
}'
nodejs / axios
curl -L -X PUT 'http://localhost:5000/api/v1/sources/:source' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "POSTGRESQL",
"connectionUrl": "jdbc:postgresql://db.example.com/mydb",
"description": "My first source!"
}'
ruby / Net::HTTP
curl -L -X PUT 'http://localhost:5000/api/v1/sources/:source' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "POSTGRESQL",
"connectionUrl": "jdbc:postgresql://db.example.com/mydb",
"description": "My first source!"
}'
csharp / RestSharp
curl -L -X PUT 'http://localhost:5000/api/v1/sources/:source' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "POSTGRESQL",
"connectionUrl": "jdbc:postgresql://db.example.com/mydb",
"description": "My first source!"
}'
php / cURL
curl -L -X PUT 'http://localhost:5000/api/v1/sources/:source' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "POSTGRESQL",
"connectionUrl": "jdbc:postgresql://db.example.com/mydb",
"description": "My first source!"
}'
java / OkHttp
curl -L -X PUT 'http://localhost:5000/api/v1/sources/:source' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "POSTGRESQL",
"connectionUrl": "jdbc:postgresql://db.example.com/mydb",
"description": "My first source!"
}'
powershell / RestMethod
curl -L -X PUT 'http://localhost:5000/api/v1/sources/:source' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "POSTGRESQL",
"connectionUrl": "jdbc:postgresql://db.example.com/mydb",
"description": "My first source!"
}'