From 5705d7e2a2ee1c82cf765e1554601b4c2916dff6 Mon Sep 17 00:00:00 2001 From: Abdon Pijpelink Date: Tue, 7 Apr 2026 11:35:51 +0200 Subject: [PATCH] Fix HTTP code snippets (#2231) --- .../snippets/check-collection-exists/simple/http.md | 2 +- .../create-collection/with-multivector/http.md | 2 +- .../create-payload-index/stopwords-full-text/http.md | 4 ++-- .../snippets/delete-collection/simple/http.md | 2 +- .../snippets/insert-points/with-custom-shard/http.md | 2 +- .../snippets/insert-points/with-multivector/http.md | 2 +- .../headless/snippets/optimizations/http.md | 2 +- .../query-points-explore/recommend-batch/http.md | 2 +- .../relevance-feedback-naive/http.md | 12 ++++++------ .../query-points/by-existing-id-with-lookup/http.md | 2 +- .../query-points/hybrid-rescoring-multistage/http.md | 4 ++-- .../snippets/query-points/hybrid-rescoring/http.md | 2 +- .../snippets/query-points/multivector/http.md | 2 +- .../query-points/score-boost-closer-to-user/http.md | 2 +- .../snippets/query-points/score-boost-tags/http.md | 2 +- .../text-search/create-bm25-collection/http.md | 2 +- .../text-search/create-hybrid-collection/http.md | 2 +- .../snippets/text-search/filter-title-phrase/http.md | 2 +- 18 files changed, 25 insertions(+), 25 deletions(-) diff --git a/qdrant-landing/content/documentation/headless/snippets/check-collection-exists/simple/http.md b/qdrant-landing/content/documentation/headless/snippets/check-collection-exists/simple/http.md index c07315765..5f3d39370 100644 --- a/qdrant-landing/content/documentation/headless/snippets/check-collection-exists/simple/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/check-collection-exists/simple/http.md @@ -1,3 +1,3 @@ ```http -GET http://localhost:6333/collections/{collection_name}/exists +GET /collections/{collection_name}/exists ``` diff --git a/qdrant-landing/content/documentation/headless/snippets/create-collection/with-multivector/http.md b/qdrant-landing/content/documentation/headless/snippets/create-collection/with-multivector/http.md index b2083a964..1bb4096b7 100644 --- a/qdrant-landing/content/documentation/headless/snippets/create-collection/with-multivector/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/create-collection/with-multivector/http.md @@ -1,5 +1,5 @@ ```http -PUT collections/{collection_name} +PUT /collections/{collection_name} { "vectors": { "size": 128, diff --git a/qdrant-landing/content/documentation/headless/snippets/create-payload-index/stopwords-full-text/http.md b/qdrant-landing/content/documentation/headless/snippets/create-payload-index/stopwords-full-text/http.md index 9b4af648c..94882e762 100644 --- a/qdrant-landing/content/documentation/headless/snippets/create-payload-index/stopwords-full-text/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/create-payload-index/stopwords-full-text/http.md @@ -1,6 +1,6 @@ ```http // Simple -PUT collections/{collection_name}/index +PUT /collections/{collection_name}/index { "field_name": "name_of_the_field_to_index", "field_schema": { @@ -11,7 +11,7 @@ PUT collections/{collection_name}/index } // Explicit -PUT collections/{collection_name}/index +PUT /collections/{collection_name}/index { "field_name": "name_of_the_field_to_index", "field_schema": { diff --git a/qdrant-landing/content/documentation/headless/snippets/delete-collection/simple/http.md b/qdrant-landing/content/documentation/headless/snippets/delete-collection/simple/http.md index 0be233150..730f82f7a 100644 --- a/qdrant-landing/content/documentation/headless/snippets/delete-collection/simple/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/delete-collection/simple/http.md @@ -1,3 +1,3 @@ ```http -DELETE http://localhost:6333/collections/{collection_name} +DELETE /collections/{collection_name} ``` diff --git a/qdrant-landing/content/documentation/headless/snippets/insert-points/with-custom-shard/http.md b/qdrant-landing/content/documentation/headless/snippets/insert-points/with-custom-shard/http.md index d8b679bc6..d41af64dc 100644 --- a/qdrant-landing/content/documentation/headless/snippets/insert-points/with-custom-shard/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/insert-points/with-custom-shard/http.md @@ -6,7 +6,7 @@ PUT /collections/{collection_name}/points "id": 1111, "vector": [0.1, 0.2, 0.3] }, - ] + ], "shard_key": "user_1" } ``` diff --git a/qdrant-landing/content/documentation/headless/snippets/insert-points/with-multivector/http.md b/qdrant-landing/content/documentation/headless/snippets/insert-points/with-multivector/http.md index 8ae1c4395..fda4e3522 100644 --- a/qdrant-landing/content/documentation/headless/snippets/insert-points/with-multivector/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/insert-points/with-multivector/http.md @@ -1,5 +1,5 @@ ```http -PUT collections/{collection_name}/points +PUT /collections/{collection_name}/points { "points": [ { diff --git a/qdrant-landing/content/documentation/headless/snippets/optimizations/http.md b/qdrant-landing/content/documentation/headless/snippets/optimizations/http.md index 6d453b105..ddc4d6dd5 100644 --- a/qdrant-landing/content/documentation/headless/snippets/optimizations/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/optimizations/http.md @@ -1,3 +1,3 @@ ```http -GET collections/{collection_name}/optimizations?with=queued,completed +GET /collections/{collection_name}/optimizations?with=queued,completed ``` \ No newline at end of file diff --git a/qdrant-landing/content/documentation/headless/snippets/query-points-explore/recommend-batch/http.md b/qdrant-landing/content/documentation/headless/snippets/query-points-explore/recommend-batch/http.md index 2e4de98f7..fa9a4395c 100644 --- a/qdrant-landing/content/documentation/headless/snippets/query-points-explore/recommend-batch/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/query-points-explore/recommend-batch/http.md @@ -1,5 +1,5 @@ ```http -POST /collections/{collection_name}/query/batch +POST /collections/{collection_name}/points/query/batch { "searches": [ { diff --git a/qdrant-landing/content/documentation/headless/snippets/query-points-explore/relevance-feedback-naive/http.md b/qdrant-landing/content/documentation/headless/snippets/query-points-explore/relevance-feedback-naive/http.md index 8cc49b209..10c9d966d 100644 --- a/qdrant-landing/content/documentation/headless/snippets/query-points-explore/relevance-feedback-naive/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/query-points-explore/relevance-feedback-naive/http.md @@ -2,7 +2,7 @@ POST /collections/{collection_name}/points/query { "query": { - "relevance_feedback: { + "relevance_feedback": { "target": [0.1, 0.9, 0.23, ...], "feedback": [ { "example": 111, "score": 0.68 }, @@ -10,13 +10,13 @@ POST /collections/{collection_name}/points/query { "example": 333, "score": 0.61 } ], "strategy": { - "naive": { - "a": 0.12, - "b": 0.43, - "c": 0.03 + "naive": { + "a": 0.12, + "b": 0.43, + "c": 0.03 } } - ] + } } } ``` diff --git a/qdrant-landing/content/documentation/headless/snippets/query-points/by-existing-id-with-lookup/http.md b/qdrant-landing/content/documentation/headless/snippets/query-points/by-existing-id-with-lookup/http.md index 191007065..8e09061fe 100644 --- a/qdrant-landing/content/documentation/headless/snippets/query-points/by-existing-id-with-lookup/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/query-points/by-existing-id-with-lookup/http.md @@ -2,7 +2,7 @@ POST /collections/{collection_name}/points/query { "query": "43cf51e2-8777-4f52-bc74-c2cbde0c8b04", // <--- point id - "using": "512d-vector" + "using": "512d-vector", "lookup_from": { "collection": "another_collection", // <--- other collection name "vector": "image-512" // <--- vector name in the other collection diff --git a/qdrant-landing/content/documentation/headless/snippets/query-points/hybrid-rescoring-multistage/http.md b/qdrant-landing/content/documentation/headless/snippets/query-points/hybrid-rescoring-multistage/http.md index fbfde6466..876b7f413 100644 --- a/qdrant-landing/content/documentation/headless/snippets/query-points/hybrid-rescoring-multistage/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/query-points/hybrid-rescoring-multistage/http.md @@ -4,11 +4,11 @@ POST /collections/{collection_name}/points/query "prefetch": { "prefetch": { "query": [1, 23, 45, 67], // <------ small byte vector - "using": "mrl_byte" + "using": "mrl_byte", "limit": 1000 }, "query": [0.01, 0.45, 0.67, ...], // <-- full dense vector - "using": "full" + "using": "full", "limit": 100 }, "query": [ // <─┐ diff --git a/qdrant-landing/content/documentation/headless/snippets/query-points/hybrid-rescoring/http.md b/qdrant-landing/content/documentation/headless/snippets/query-points/hybrid-rescoring/http.md index 60a4eee61..ed223840e 100644 --- a/qdrant-landing/content/documentation/headless/snippets/query-points/hybrid-rescoring/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/query-points/hybrid-rescoring/http.md @@ -3,7 +3,7 @@ POST /collections/{collection_name}/points/query { "prefetch": { "query": [1, 23, 45, 67], // <------------- small byte vector - "using": "mrl_byte" + "using": "mrl_byte", "limit": 1000 }, "query": [0.01, 0.299, 0.45, 0.67, ...], // <-- full vector diff --git a/qdrant-landing/content/documentation/headless/snippets/query-points/multivector/http.md b/qdrant-landing/content/documentation/headless/snippets/query-points/multivector/http.md index a5cee603a..59522cc03 100644 --- a/qdrant-landing/content/documentation/headless/snippets/query-points/multivector/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/query-points/multivector/http.md @@ -1,5 +1,5 @@ ```http -POST collections/{collection_name}/points/query +POST /collections/{collection_name}/points/query { "query": [ [-0.013, 0.020, -0.007, -0.111, ...], diff --git a/qdrant-landing/content/documentation/headless/snippets/query-points/score-boost-closer-to-user/http.md b/qdrant-landing/content/documentation/headless/snippets/query-points/score-boost-closer-to-user/http.md index 8f6db7eba..2be6e2650 100644 --- a/qdrant-landing/content/documentation/headless/snippets/query-points/score-boost-closer-to-user/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/query-points/score-boost-closer-to-user/http.md @@ -10,7 +10,7 @@ POST /collections/{collection_name}/points/query "gauss_decay": { "x": { "geo_distance": { - "origin": { "lat": 52.504043, "lon": 13.393236 } + "origin": { "lat": 52.504043, "lon": 13.393236 }, "to": "geo.location" } }, diff --git a/qdrant-landing/content/documentation/headless/snippets/query-points/score-boost-tags/http.md b/qdrant-landing/content/documentation/headless/snippets/query-points/score-boost-tags/http.md index 46bf8285e..a3593428f 100644 --- a/qdrant-landing/content/documentation/headless/snippets/query-points/score-boost-tags/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/query-points/score-boost-tags/http.md @@ -4,7 +4,7 @@ POST /collections/{collection_name}/points/query "prefetch": { "query": [0.2, 0.8, ...], // <-- dense vector "limit": 50 - } + }, "query": { "formula": { "sum": [ diff --git a/qdrant-landing/content/documentation/headless/snippets/text-search/create-bm25-collection/http.md b/qdrant-landing/content/documentation/headless/snippets/text-search/create-bm25-collection/http.md index 4eee1fdca..b010c3928 100644 --- a/qdrant-landing/content/documentation/headless/snippets/text-search/create-bm25-collection/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/text-search/create-bm25-collection/http.md @@ -1,5 +1,5 @@ ```http -PUT /collections/books?wait=true +PUT /collections/books { "sparse_vectors": { "title-bm25": { diff --git a/qdrant-landing/content/documentation/headless/snippets/text-search/create-hybrid-collection/http.md b/qdrant-landing/content/documentation/headless/snippets/text-search/create-hybrid-collection/http.md index 4e97fa287..71c5cfbb8 100644 --- a/qdrant-landing/content/documentation/headless/snippets/text-search/create-hybrid-collection/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/text-search/create-hybrid-collection/http.md @@ -1,5 +1,5 @@ ```http -PUT /collections/books?wait=true +PUT /collections/books { "vectors": { "description-dense": { diff --git a/qdrant-landing/content/documentation/headless/snippets/text-search/filter-title-phrase/http.md b/qdrant-landing/content/documentation/headless/snippets/text-search/filter-title-phrase/http.md index 5707d9769..efa2f2262 100644 --- a/qdrant-landing/content/documentation/headless/snippets/text-search/filter-title-phrase/http.md +++ b/qdrant-landing/content/documentation/headless/snippets/text-search/filter-title-phrase/http.md @@ -1,5 +1,5 @@ ```http -POST /collections/books/points/query?wait=true +POST /collections/books/points/query { "query": { "text": "time travel",