Case datasets

Versioned case datasets - create, add, edit, delete, read any version, see a row's history and export JSONL.

GET
/v1/tasks/{slug}/datasets

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string

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  ]}
POST
/v1/tasks/{slug}/datasets

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string

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  ]}
GET
/v1/tasks/{slug}/datasets/{name}

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string
name*string

Query Parameters

version?integer

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  ]}
GET
/v1/tasks/{slug}/datasets/{name}/versions

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string
name*string

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  ]}
GET
/v1/tasks/{slug}/datasets/{name}/export

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string
name*string

Query Parameters

version?integer

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  ]}
POST
/v1/tasks/{slug}/datasets/{name}/rows

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string
name*string

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  ]}
PATCH
/v1/tasks/{slug}/datasets/{name}/rows/{rowId}

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string
name*string
rowId*string

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  ]}
DELETE
/v1/tasks/{slug}/datasets/{name}/rows/{rowId}

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string
name*string
rowId*string

Query Parameters

baseVersion*integer

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  ]}
GET
/v1/tasks/{slug}/datasets/{name}/rows/{rowId}/history

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string
name*string
rowId*string

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  ]}