Skip to main content
PATCH
Edit a dataset item

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataset_id
string<uuid>
required

Dataset UUID

item_id
string<uuid>
required

Dataset item UUID

Body

application/json

Partial update of one dataset item. Send only the fields you want to change: an omitted field keeps its current value, while a field sent as null clears it (except inputs). An unknown field is a 400. A field that is sent replaces that field wholesale — there is no deep merge inside the JSON buckets.

base_version
required

Optimistic-concurrency check: the version the caller believes it is editing. The edit is refused with 409 if any revision of this item has landed above that version — not "if this is not the dataset's newest version", so an edit to an item that is merely old is not rejected.

inputs
object

Replaces the whole inputs object. Not deep-merged, so this is how a key is removed from it.

Example:
expected_outputs
object | null

Replaces the whole expected_outputs object.

metadata
object | null

Replaces the whole metadata object.

extras
object | null

Replaces the whole extras object.

source_name
string | null

Name of the source for this dataset item.

source_id
string | null

ID of the item in the source.

Response

The item as it reads at the version this edit committed, and that version. For a no-op, the unchanged item and the current version it was compared against. dataset_version.version is safe as base_version only for this item; re-read before editing others.

Response object for standard API responses.

api_version
enum<string>
default:3.0

API version.

Available options:
2.0,
3.0
kind
enum<string>
default:NORMAL

Type of response, indicating a normal response.

Available options:
NORMAL
data
object