Skip to main content

Documentation for ScryLab v0.1.6

Changelogs

Create Data Source

POST /api/sources

Creates a new, empty data source in ScryLab.

Tip

Practical guide for using this in a workflow: Import Data from Python & MATLAB

Request

POST /api/sources HTTP/1.1
Host: localhost:5678
Content-Type: application/json

Request Body

{
"name": "My Data"
}

Body Parameters

ParameterTypeRequiredDescription
namestringNoDisplay name of the data source (default: "New DataSource")

Response

Status Code: 200 OK

Body:

{
"status": "ok",
"result": {
"source_id": "937896ff-f856-4b20-8888-e5127f0835b5",
"name": "My Data"
}
}

Response Fields

FieldTypeDescription
result.source_idstringID of the newly created data source
result.namestringName of the data source

Example

Terminal window
curl -X POST http://localhost:5678/api/sources \
-H "Content-Type: application/json" \
-d '{"name": "My Data"}'

Errors

This endpoint always returns 200 OK, as creating a new data source always succeeds.