#[tokio::test] async fn test_overwrite_payload() { async fn overwrite_payload() -> Result<(), Box> { // WARNING: This is a generated test snippet. // Please, modify the snippet in the `../snippets/overwrite_payload.rs` file use qdrant_client::qdrant::{ points_selector::PointsSelectorOneOf, PointsIdsList, SetPayloadPointsBuilder, }; use qdrant_client::{Qdrant, Payload}; use serde_json::json; let client = Qdrant::from_url("http://localhost:6334").build()?; let payload: Payload = json!({ "property1": "string", "property2": "string", }) .try_into() .unwrap(); client .overwrite_payload( SetPayloadPointsBuilder::new("{collection_name}", payload) .points_selector(PointsSelectorOneOf::Points(PointsIdsList { ids: vec![0.into(), 3.into(), 10.into()], })) .wait(true), ) .await?; Ok(()) } let _ = overwrite_payload().await; }