Skip to main content

Discard the editable version's changes

Request

Discard staged edits and reset the dataset to the last committed version.

Security
ApiKey(Required scopes: datasets.update)
Path
idstringrequired

Dataset ID

Payload
// No request payload

Responses

Counts of the staged edits that were discarded

Bodyapplication/json
discardedUpdatesintegerrequired

Number of pending episode version changes discarded from the dataset's draft.

discardedAddsintegerrequired

Number of staged additions that were deleted.

discardedRemovesintegerrequired

Number of staged removals that were cleared.

Response
{ "discardedUpdates": 0, "discardedAdds": 0, "discardedRemoves": 0 }