Bring your own data
Upload a dataset and drive an index from it.
A dataset is data you bring: an ESG score file, a proprietary signal, a list of constituents your research team maintains, a per-account exclusion list. Once uploaded it gets a dst_ id and becomes readable from inside a workflow like any other data source.
Two things to get right. Uploading is a three-call flow, not a single multipart POST. And once the data is up, inspect it before writing a filter — column names and the actual set of values in a column are things to discover, not assume.
Uploading
The file never passes through the API. You create a dataset record, ask it for a presigned S3 url, PUT the bytes straight to S3, and then tell the dataset to apply what you uploaded. Four HTTP calls, three of them to Index One.
- 1
Create the dataset record
The id comes back at
dataset.id, notdataset_id. Addget_presigned_url: trueand afile_typeto get the first upload slot in the same response underpresigned_url, which skips step two.curl -X POST https://api.indexone.io/dataset \-H "x-api-key: YOUR_API_KEY" -H "Authorization: YOUR_ID_TOKEN" \-H "Content-Type: application/json" \-d '{"name": "ESG scores","description": "Monthly internal ESG ratings by ticker","team_id": "YOUR_TEAM_ID","get_presigned_url": true}' - 2
Request a presigned url
Per file.
file_typeis a MIME type and is signed into the url — thePUTmust send the identicalContent-Typeheader or S3 rejects it. Returnsurl,bucket,keyandcontent_type.curl -X POST https://api.indexone.io/dataset/dst_9KcQm2/presigned_url \-H "x-api-key: YOUR_API_KEY" -H "Authorization: YOUR_ID_TOKEN" \-H "Content-Type: application/json" \-d '{ "file_type": "text/csv", "file_name": "esg_2026_07.csv" }' - 3
PUT the file to S3
Directly to the returned url, carrying the
content_typethat was signed. No Index One headers — the signature is in the url, and adding anAuthorizationheader will break it.curl -X PUT "https://…s3….amazonaws.com/…?X-Amz-Signature=…" \-H "Content-Type: text/csv" --upload-file esg_2026_07.csv - 4
Apply the mutation
There is no
mutation_data_urlin the presign response — build it ass3://{bucket}/{key}from what step two returned.appendadds rows,replaceswaps the contents.curl -X POST https://api.indexone.io/dataset/dst_9KcQm2/mutation \-H "x-api-key: YOUR_API_KEY" -H "Authorization: YOUR_ID_TOKEN" \-H "Content-Type: application/json" \-d '{ "mutation": "append", "mutation_data_url": "s3://…/esg_2026_07.csv" }'
# 1. createcurl -X POST https://api.indexone.io/dataset -H "x-api-key: KEY" -H "Authorization: TOKEN" \-H "Content-Type: application/json" \-d '{"name":"ESG scores","description":"…","team_id":"TEAM"}'# -> {"dataset":{"id":"dst_9KcQm2", …}}# 2. presigned url -> {"url":…,"bucket":…,"key":…,"content_type":"text/csv"}curl -X POST https://api.indexone.io/dataset/dst_9KcQm2/presigned_url \-H "x-api-key: KEY" -H "Authorization: TOKEN" -H "Content-Type: application/json" \-d '{"file_type":"text/csv","file_name":"esg.csv"}'# 3. straight to S3, with the Content-Type that was signedcurl -X PUT "PRESIGNED_URL" -H "Content-Type: text/csv" --upload-file esg.csv# 4. apply — mutation_data_url is s3://{bucket}/{key} from step 2curl -X POST https://api.indexone.io/dataset/dst_9KcQm2/mutation \-H "x-api-key: KEY" -H "Authorization: TOKEN" -H "Content-Type: application/json" \-d '{"mutation":"append","mutation_data_url":"s3://BUCKET/dst_9KcQm2/fil_…/esg.csv"}'
Nothing changes until the mutation call
PUT to S3 means the bytes are stored, not that the dataset has them. Skipping step four
leaves the dataset exactly as it was, with no error anywhere. If a workflow is reading stale data, check that the
mutation ran.Reading it back
curl "https://api.indexone.io/dataset/dst_9KcQm2?parsed=true" \-H "x-api-key: YOUR_API_KEY" -H "Authorization: YOUR_ID_TOKEN"
parsed=true returns the parsed rows rather than the raw file. From an agent, inspect_dataset is better: view: "schema" gives columns and dtypes, view: "sample" a few rows, view: "unique" with a column the distinct values in it. That last one is the fix for the most common failure mode — filtering on "Technology" when the file says "Information Technology", and getting an empty universe.
inspect_dataset
Inspect a team dataset's real data. view='schema' (columns+dtypes), 'sample' (rows), 'shape', 'unique' (distinct values of 'column'), or 'stats' (per-column distribution summary). Use before filtering on it.
Arguments
| Field | Type | Description |
|---|---|---|
dataset_idrequired | string | |
view | "schema" | "sample" | "shape" | "unique" | "stats" | |
column | string | Required when view='unique'. |
limit | integer | |
sample_rows | integer |
curl -X POST "https://mcp.indexone.io" \-H "content-type: application/json" \-H "accept: application/json, text/event-stream" \-H "x-api-key: YOUR_API_KEY" \-d '{"jsonrpc": "2.0","id": 1,"method": "tools/call","params": {"name": "inspect_dataset","arguments": {"dataset_id": "dst_9KcQm2","view": "schema"}}}'
`mutation: "delete"` deletes the whole dataset
POST /dataset/{id}/mutation with {"mutation": "delete"} removes the
dataset's record and its team reference, so nothing can load it again — the same thing DELETE /dataset/{id}
does, and it cannot be undone. To change contents, use replace. GET /dataset?team_id=… lists a team's datasets and
PATCH /dataset/{id} renames one or re-declares what its columns mean.Using it in a workflow
There are two shapes, and which one you have depends on whether your file carries dates.
A static list: trigger + load_dataset
A file with no time dimension — just symbols, and perhaps scores. The schedule comes from a cron trigger, and load_dataset reads the file each time it fires.
- A cron trigger fires annually, aligned to the preceding XNYS session close.
- load_dataset reads the dataset.
dataset_idis required — the console fills it in when you pick a dataset. - map_identifiers turns the symbol column into Index One ids, which is what every downstream index operation expects.
- create_index_weighting applies equal weights, create_index_holdings converts them to share counts.
load_dataset also takes filters (the standard row-level operators), attributes for column projection, and an as_of block — {time_column, time, group_by} — which selects the latest row per group at or before a cut-off. as_of.time defaults to context.request_context.time, so a file that accumulates monthly snapshots can be read point-in-time in a backtest without any extra wiring:
{"id": "load_scores","operation": "load_dataset","parameters": {"dataset_id": "dst_9KcQm2","as_of": { "time_column": "date", "group_by": "symbol" },"attributes": ["date", "symbol", "esg_score"]},"input": [{ "$ref": "trigger" }]}
A dated file: dataset_trigger
If your file has a date column, it can define the rebalance schedule itself. dataset_trigger fires once per distinct timestamp in time_column, and — like index_event_trigger — the trigger is the data source: downstream operations read dataset_trigger.output.data rather than loading the file again.
- dataset_trigger fires at every distinct value in the
datecolumn. In a backtest that replays the whole file; in live mode a dataset update can wake it. - The alignment settings put each fire on a real trading session — a bare date means that session’s CLOSE. Without them the trigger fires at 00:00, which anchors the rebalance to the PREVIOUS session’s index value while pricing at this session’s close, so the rebalance day’s return is lost. Set
align_time: falseto keep a time your file already states and only snap the session date. mode: "incremental"passes only the rows matching the fired time — the constituents for that rebalance.- map_identifiers, then equal weighting, then holdings. No cron anywhere: the file is the schedule.
| `mode` | What the trigger passes downstream |
|---|---|
incremental | Only the rows matching the fired timestamp. The right choice for a constituents file. |
full | All rows up to the current time. Use when the step needs history, not just today. |
all | The entire dataset regardless of time. Beware — this leaks future rows into a backtest. |
dataset_trigger requires dataset_id
load_dataset, which the console can populate implicitly, dataset_trigger will not run without
an explicit dataset_id parameter. And mode: "all" in a backtest hands every historical step the whole file,
including rows dated after that step — a look-ahead bug that produces a suspiciously good result.Mapping identifiers
Your file almost certainly keys on tickers. Index operations key on Index One ids. map_identifiers bridges the two using the securities cross-section: by default it matches the symbol column of your data against symbol in the reference and writes the reference's id into an id column. All four sides are configurable — data_source_column, reference_source_column, reference_target_column and output_column — if your file keys on something else, or if you want FIGIs out rather than ids.
Platform symbols are venue-suffixed — AAPL.US, VOD.LN, 7203.JP — and an id is the security's composite FIGI. Resolution walks the platform symbol, then common vendor spellings, then the id itself, taking the first hit, so bare and vendor-style tickers resolve too. The full suffix table is in Symbols & identifiers.
Rows that do not match come through without an id. A delisted ticker, a renamed one, or a non-US ticker with no suffix to disambiguate it will all silently drop out at the weighting step. Preview the mapping and compare the row count before and after.
Check the mapping before you check the index
map_identifiers alone through POST /execute (or MCP run_workflow, then
inspect_run). If 480 of your 500 symbols mapped, you want to know that here — not from an index that quietly
holds 480 names.Rebalancing a live index
There is no rebalance endpoint for this shape, and you do not need one. A live dataset_trigger index is already suspended, waiting on the next date in its file. A rebalance is an append: add the new basket carrying the date it takes effect, commit it, and the commit wakes the index. It is still an append if your index reads its file with load_dataset on a cron instead — only the timing rules differ, and those are in Reading with load_dataset below.
The rows are the ones the trigger already passes downstream — the same shape as the file you started with:
date,symbol,weight2026-09-30,AAPL.US,0.252026-09-30,MSFT.US,0.252026-09-30,NVDA.US,0.302026-09-30,AMZN.US,0.20
From the console
On the Datasets page, the Used by column shows which indices each file drives, so it is obvious which dst_ row is the one that matters. Its row opens the editor — drop the CSV, leave the action on append, save. The confirmation names the date it just scheduled, or warns you that the file has no dates left to fire on.
The index carries the link the other way: uploading weights for a day on its Track page names the file it rebalances from and asks what to do with them. Use the dataset adds them to that file, and the index rebalances from them like any other rows; Ad-hoc override changes that one rebalance of that index only and leaves the file alone.
Over the API
The same three calls as any upload — presign, PUT, mutate — with mutation: "append". Only the last one changes anything.
# 1. an upload slotcurl -X POST https://api.indexone.io/dataset/dst_9KcQm2/presigned_url \-H "x-api-key: KEY" -H "Authorization: TOKEN" -H "Content-Type: application/json" \-d '{"file_type":"text/csv","file_name":"rebalance.csv"}'# 2. the bytes, with the Content-Type that was signedcurl -X PUT "PRESIGNED_URL" -H "Content-Type: text/csv" --upload-file rebalance.csv# 3. the only call that touches the indexcurl -X POST https://api.indexone.io/dataset/dst_9KcQm2/mutation \-H "x-api-key: KEY" -H "Authorization: TOKEN" -H "Content-Type: application/json" \-d '{"mutation":"append","mutation_data_url":"s3://BUCKET/dst_9KcQm2/fil_…/rebalance.csv"}'# -> {"dataset":{ … "row_count":1240,"date_next":"2026-09-30"},# "trigger_notification":{"sent":true,"status_code":200}}
What decides whether it fires
- The date in the file is the rebalance date. With calendar alignment on (the default) a bare date means that session’s close, not midnight — which is what anchors the new basket to the same session’s index value.
- Dates at or before the last fire are invisible. The trigger only considers timestamps after the one it last fired on, so back-dating a correction into a period it has already processed does nothing at all. Restate instead.
append, notreplace. Replace drops every earlier basket, after which a restatement or backtest sees only the current snapshot at every historical step.- An index whose live execution is parked in an error is not woken by a commit. Clear the error first, or the upload lands with nothing listening.
- Upload before the date you want it to take effect, with margin — a commit that lands after the session close has already passed waits for the next date in the file.
Reading with load_dataset
An index built on the other shape — a cron trigger plus load_dataset — does not take its schedule from the file, so none of the date rules above apply to it. It reads whatever the file holds at the moment its own trigger fires. That makes the upload no less urgent: it has to land before the next cron fire, because a file updated afterwards is simply the basket the index will use next time round.
The rebalance itself is the same three calls with mutation: "append". Two differences worth holding on to. A commit still posts a dataset-update event, and a load_dataset workflow has no dataset_trigger to wake, so nothing happens early — the upload sits there until the cron comes round. And because the rows are not filtered by a fired timestamp, load_dataset hands the operation everything in the file unless you narrow it: use filters, or an as_of block — {time_column, time, group_by} — to take the latest row per security at the run time, which is what makes an accumulating file behave point-in-time.
The Datasets page treats the two alike — the Used by column names this file too. The Track page's weights upload does not offer it, though: the date is the index's to give, not the file's, so a day's weights have no rows of their own to go into.
Appending the same basket twice is not harmless
date — the default — create_index_weighting keeps the
last row per security and the basket is unchanged. Named anything else, with weighting_type: "custom", the
duplicate weights are summed: a 0.5 / 0.5 book becomes 1.0 / 1.0. No endpoint takes an idempotency key yet,
so check row_count on the response instead of blindly retrying.Confirming it took
trigger_notification only says the wake reached the engine; the rebalance itself runs asynchronously
after it. dataset.date_next is the next date that will fire, and GET /dataset/{id} returns it later too.
For the result itself, read the index holdings at the rebalance time, or watch the run on the index’s
Executions tab. And if a workflow is reading stale data, check the mutation call ran at all — a successful
PUT on its own changes nothing.