Operations

Each step inside up: / down: is identified by an op: key. The table summarizes effect and auto-reversibility; click through for a detailed description, runnable example, and the full list of spec fields.

op:EffectAuto-reversible?
create_collectionCreate a collection from a full spec✔ → delete_collection
delete_collectionDrop a collection✘ (data loss)
update_collectionPatch hnsw_config, quantization_config, optimizers_config, or per-vector params in place✘ (prior state unknown)
create_vectorAdd a named dense vector (Qdrant v1.18+)✔ → delete_vector
create_sparse_vectorAdd a named sparse vector✔ → delete_vector
delete_vectorDrop a named vector✘ (data loss)
create_payload_indexIndex a payload field✔ → delete_payload_index
delete_payload_indexRemove a payload index✔ iff schema: is given
create_aliasPoint an alias at a collection✔ → delete_alias
delete_aliasRemove an alias✘ (target unknown)
switch_aliasAtomically repoint an alias (zero-downtime swap)✘ (prior target unknown)
execRun a shell command (the re-embedding escape hatch)✘ unless down provided

When an operation isn't auto-reversible, supply an explicit down: block — then revector down uses it verbatim.

The shapes referenced by these operations (CollectionSpec, VectorSpec, HnswConfigSpec, …) are documented on the Specs page.