Skip to main content
POST
/
ingest
/
new
/
{namespace}
/
{datasetName}
Create new dataset
curl --request POST \
  --url https://api.datalinks.com/api/v1/ingest/new/{namespace}/{datasetName} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "visibility": "Private",
  "inferDefinition": {
    "dataDescription": "Employee dataset containing demographics and compensation.",
    "fieldDefinition": "id=unique employee identifier\nname=full employee name\nage=employee age in years\ndepartment=work department\nsalary=annual salary in USD\n"
  }
}
'
{
  "error_code": "UNAUTHORIZED",
  "message": "Missing authentication token",
  "error_message": "",
  "sub_errors": [
    {
      "code": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Use a Bearer token for authentication. Submit the token using the Authorization header: Authorization: Bearer <token>.

Path Parameters

namespace
string
required

Namespace for the dataset.

datasetName
string
required

Name of the dataset.

Body

application/json
visibility
enum<string>
required
Available options:
Public,
Private
Example:

"Private"

inferDefinition
object

Response

Creates a new dataset.