Skip to main content
PATCH
Update dataset rule

Authorizations

Authorization
string
header
required

API key with the vk_ prefix. Create one from the dashboard.

Path Parameters

dataset_id
string
required

Dataset ID or name

Body

application/json
auto_snapshot_rows
integer<int32> | null

null disables the auto-snapshot rule; N >= 1 enables it.

Response

The updated dataset

object
string
required
id
string
required
name
string
required
created_at
string<date-time>
required
source_type
string
source_uri
string | null
huggingface_dataset
string | null
num_rows
integer<int32> | null
format
string | null

Row format. A stream's locked format (prompt | preference | completion | chat | eval); an upload records its first row's shape, which adds chat_no_prompt (chat rows without a prompt, still locked as chat), text, sharegpt and alpaca (no lock). Job submit refuses GRPO on chat_no_prompt, text, sharegpt and alpaca rows. Null on Hugging Face / volume sources, and on a legacy dataset until its first append locks it.

head_row
integer<int64>

Highest row_id appended so far (0 = empty stream). Includes supersede and tombstone entries, so it is the log length, not the live row count.

auto_snapshot_rows
integer<int32> | null

"cut a snapshot every N new rows" rule; null = off.

latest_snapshot_id
string | null

Newest snapshot id ("@snap-N"); populated by GET /v1/datasets/{id}.

unsnapshotted_rows
integer<int64> | null

Rows appended since the newest snapshot; populated by GET /v1/datasets/{id}.

snapshot_count
integer<int64> | null