Case datasets
Versioned case datasets - create, add, edit, delete, read any version, see a row's history and export JSONL.
An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/tasks/string/datasets"{ "datasets": [ { "name": "string", "createdAt": "string", "head": { "number": 0, "hash": "string", "parent": 0, "rowCount": 0, "change": { "kind": "create", "rowIds": [ "string" ] }, "author": "string", "createdAt": "string" } } ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/tasks/string/datasets" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "dataset": { "name": "string", "head": 0, "version": { "number": 0, "hash": "string", "parent": 0, "rowCount": 0, "change": { "kind": "create", "rowIds": [ "string" ] }, "author": "string", "createdAt": "string" }, "rows": [ { "id": "string", "input": null, "expected": null, "metadata": { "property1": null, "property2": null }, "version": 0, "position": 0 } ] }}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Query Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/tasks/string/datasets/string"{ "dataset": { "name": "string", "head": 0, "version": { "number": 0, "hash": "string", "parent": 0, "rowCount": 0, "change": { "kind": "create", "rowIds": [ "string" ] }, "author": "string", "createdAt": "string" }, "rows": [ { "id": "string", "input": null, "expected": null, "metadata": { "property1": null, "property2": null }, "version": 0, "position": 0 } ] }}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/tasks/string/datasets/string/versions"{ "versions": [ { "number": 0, "hash": "string", "parent": 0, "rowCount": 0, "change": { "kind": "create", "rowIds": [ "string" ] }, "author": "string", "createdAt": "string" } ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Query Parameters
Response Body
application/x-ndjson
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/tasks/string/datasets/string/export""string"{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/tasks/string/datasets/string/rows" \ -H "Content-Type: application/json" \ -d '{ "rows": [ { "input": null } ] }'{ "version": { "number": 0, "hash": "string", "parent": 0, "rowCount": 0, "change": { "kind": "create", "rowIds": [ "string" ] }, "author": "string", "createdAt": "string" }, "rows": [ { "id": "string", "input": null, "expected": null, "metadata": { "property1": null, "property2": null }, "version": 0, "position": 0 } ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/tasks/string/datasets/string/rows/string" \ -H "Content-Type: application/json" \ -d '{ "baseVersion": 1 }'{ "version": { "number": 0, "hash": "string", "parent": 0, "rowCount": 0, "change": { "kind": "create", "rowIds": [ "string" ] }, "author": "string", "createdAt": "string" }, "rows": [ { "id": "string", "input": null, "expected": null, "metadata": { "property1": null, "property2": null }, "version": 0, "position": 0 } ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Query Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/tasks/string/datasets/string/rows/string?baseVersion=1"{ "version": { "number": 0, "hash": "string", "parent": 0, "rowCount": 0, "change": { "kind": "create", "rowIds": [ "string" ] }, "author": "string", "createdAt": "string" }, "rows": [ { "id": "string", "input": null, "expected": null, "metadata": { "property1": null, "property2": null }, "version": 0, "position": 0 } ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/tasks/string/datasets/string/rows/string/history"{ "revisions": [ { "rowId": "string", "version": 0, "deleted": true, "input": null, "expected": null, "metadata": { "property1": null, "property2": null }, "author": "string", "createdAt": "string" } ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}{ "error": "string", "head": 0, "duplicates": [ { "index": 0, "id": "string" } ], "issues": [ null ]}