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.1Host: localhost:5678Content-Type: application/jsonRequest Body
{ "name": "My Data"}Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | Display 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
| Field | Type | Description |
|---|---|---|
result.source_id | string | ID of the newly created data source |
result.name | string | Name of the data source |
Example
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.