Create a dataset
This endpoint has been deprecated and may be removed in future versions of the API.
Creates a new dataset.
Path Parameters
Possible values: <= 1024 characters
The name of the namespace.
Possible values: <= 1024 characters
The name of the dataset.
Request Body
Possible values: [DB_TABLE
]
The type of the dataset.
The physical name of the table.
The name of the source associated with the table.
fields object[] required
List of tags.
The description of the table.
The ID associated with the run modifying the table.
Possible values: [STREAM
]
The type of the dataset.
The physical name of the stream.
The name of the source associated with the stream.
The URL of the schema for the stream data.
fields object[] required
List of tags.
The description of the stream.
The ID associated with the run modifying the stream.
- 200
OK
Schema
id object
The type of the dataset.
The logical name of the dataset.
The physical name of the dataset.
An ISO-8601 timestamp representing the date/time the dataset was created.
An ISO-8601 timestamp representing the date/time the dataset was updated.
The namespace of the dataset.
The name of the source associated with the dataset.
fields object[]
List of tags.
An ISO-8601 timestamp representing the date/time the dataset was last modified by a successful run.
The last lifecycle state of the dataset.
The description of the dataset.
facets object
The current version of the dataset.
The deleted state of the dataset.
{
"id": {
"namespace": "my-namespace",
"name": "my-dataset"
},
"type": "DB_TABLE",
"name": "my-dataset",
"physicalName": "public.mytable",
"createdAt": "2019-05-09T19:49:24.201361Z",
"updatedAt": "2019-05-09T19:49:24.201361Z",
"namespace": "my-namespace",
"sourceName": "my-source",
"fields": [
{
"name'": "a",
"type": "INTEGER",
"tags": []
},
{
"name'": "b",
"type": "TIMESTAMP",
"tags": []
},
{
"name'": "c",
"type": "INTEGER",
"tags": []
},
{
"name'": "d",
"type": "INTEGER",
"tags": []
}
],
"tags": [],
"lastModifiedAt": null,
"description": "My first dataset!",
"facets": {},
"currentVersion": "b1d626a2-6d3a-475e-9ecf-943176d4a8c6"
}
PUT /namespaces/:namespace/datasets/:dataset
Request
Request
curl -L -X PUT 'http://localhost:5000/api/v1/namespaces/:namespace/datasets/:dataset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "DB_TABLE",
"physicalName": "public.mytable",
"sourceName": "my-source",
"fields": [
{
"name": "a",
"type": "INTEGER"
},
{
"name": "b",
"type": "TIMESTAMP"
},
{
"name": "c",
"type": "INTEGER"
},
{
"name": "d",
"type": "INTEGER"
}
],
"description": "My first dataset!"
}'
curl -L -X PUT 'http://localhost:5000/api/v1/namespaces/:namespace/datasets/:dataset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "DB_TABLE",
"physicalName": "public.mytable",
"sourceName": "my-source",
"fields": [
{
"name": "a",
"type": "INTEGER"
},
{
"name": "b",
"type": "TIMESTAMP"
},
{
"name": "c",
"type": "INTEGER"
},
{
"name": "d",
"type": "INTEGER"
}
],
"description": "My first dataset!"
}'
curl -L -X PUT 'http://localhost:5000/api/v1/namespaces/:namespace/datasets/:dataset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "DB_TABLE",
"physicalName": "public.mytable",
"sourceName": "my-source",
"fields": [
{
"name": "a",
"type": "INTEGER"
},
{
"name": "b",
"type": "TIMESTAMP"
},
{
"name": "c",
"type": "INTEGER"
},
{
"name": "d",
"type": "INTEGER"
}
],
"description": "My first dataset!"
}'
curl -L -X PUT 'http://localhost:5000/api/v1/namespaces/:namespace/datasets/:dataset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "DB_TABLE",
"physicalName": "public.mytable",
"sourceName": "my-source",
"fields": [
{
"name": "a",
"type": "INTEGER"
},
{
"name": "b",
"type": "TIMESTAMP"
},
{
"name": "c",
"type": "INTEGER"
},
{
"name": "d",
"type": "INTEGER"
}
],
"description": "My first dataset!"
}'
curl -L -X PUT 'http://localhost:5000/api/v1/namespaces/:namespace/datasets/:dataset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "DB_TABLE",
"physicalName": "public.mytable",
"sourceName": "my-source",
"fields": [
{
"name": "a",
"type": "INTEGER"
},
{
"name": "b",
"type": "TIMESTAMP"
},
{
"name": "c",
"type": "INTEGER"
},
{
"name": "d",
"type": "INTEGER"
}
],
"description": "My first dataset!"
}'
curl -L -X PUT 'http://localhost:5000/api/v1/namespaces/:namespace/datasets/:dataset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "DB_TABLE",
"physicalName": "public.mytable",
"sourceName": "my-source",
"fields": [
{
"name": "a",
"type": "INTEGER"
},
{
"name": "b",
"type": "TIMESTAMP"
},
{
"name": "c",
"type": "INTEGER"
},
{
"name": "d",
"type": "INTEGER"
}
],
"description": "My first dataset!"
}'
curl -L -X PUT 'http://localhost:5000/api/v1/namespaces/:namespace/datasets/:dataset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "DB_TABLE",
"physicalName": "public.mytable",
"sourceName": "my-source",
"fields": [
{
"name": "a",
"type": "INTEGER"
},
{
"name": "b",
"type": "TIMESTAMP"
},
{
"name": "c",
"type": "INTEGER"
},
{
"name": "d",
"type": "INTEGER"
}
],
"description": "My first dataset!"
}'
curl -L -X PUT 'http://localhost:5000/api/v1/namespaces/:namespace/datasets/:dataset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "DB_TABLE",
"physicalName": "public.mytable",
"sourceName": "my-source",
"fields": [
{
"name": "a",
"type": "INTEGER"
},
{
"name": "b",
"type": "TIMESTAMP"
},
{
"name": "c",
"type": "INTEGER"
},
{
"name": "d",
"type": "INTEGER"
}
],
"description": "My first dataset!"
}'
curl -L -X PUT 'http://localhost:5000/api/v1/namespaces/:namespace/datasets/:dataset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"type": "DB_TABLE",
"physicalName": "public.mytable",
"sourceName": "my-source",
"fields": [
{
"name": "a",
"type": "INTEGER"
},
{
"name": "b",
"type": "TIMESTAMP"
},
{
"name": "c",
"type": "INTEGER"
},
{
"name": "d",
"type": "INTEGER"
}
],
"description": "My first dataset!"
}'