Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Compare latest version with draft

GET/v1/private/datasets/{id}/versions/diffCompare latest version with draft

Compare the latest committed dataset version with the current draft state. This endpoint provides insights into changes made since the last version was committed. The comparison calculates additions, modifications, deletions, and unchanged items between the latest version snapshot and current draft.

Parameters

idstring · uuidpathrequired

Responses

200Diff computed successfullyapplication/json
objectDatasetVersionDiff
from_versionstring
statisticsobject
Show child attributes
itemsAddedinteger · int32
itemsDeletedinteger · int32
itemsModifiedinteger · int32
itemsUnchangedinteger · int32
to_versionstring
Example response
{
  "from_version": "string",
  "statistics": {
    "itemsAdded": 0,
    "itemsDeleted": 0,
    "itemsModified": 0,
    "itemsUnchanged": 0
  },
  "to_version": "string"
}
404Version not found
Documentation menu