insertMany documents with $vectorize

POST {{DB_API_ENDPOINT}}/{{DB_KEYSPACE}}/{{DB_VECTORIZE_COLLECTION}}

Request Body

{"insertMany"=>{"documents"=>[{"_id"=>"2", "purchase_type"=>"Online", "$vectorize"=>"Tesla Model 3 purchased in Staten Island NYC", "customer"=>{"name"=>"Jack B.", "phone"=>"123-456-2222", "age"=>34, "credit_score"=>700, "address"=>{"address_line"=>"888 Broadway", "city"=>"New York", "state"=>"NY"}}, "purchase_date"=>{"$date"=>1690391491}, "seller"=>{"name"=>"Tammy S.", "location"=>"Staten Island NYC"}, "items"=>[{"car"=>"Tesla Model 3", "color"=>"White"}, "Extended warranty - 10 years", "Service - 5 years"], "amount"=>53990, "status"=>"active"}, {"_id"=>"3", "purchase_type"=>"Online", "$vectorize"=>"Extended warranty purchased in NYC", "customer"=>{"name"=>"Jill D.", "phone"=>"123-456-3333", "age"=>30, "credit_score"=>742, "address"=>{"address_line"=>"12345 Broadway", "city"=>"New York", "state"=>"NY"}}, "purchase_date"=>{"$date"=>1690564291}, "seller"=>{"name"=>"Jasmine S.", "location"=>"Brooklyn NYC"}, "items"=>"Extended warranty - 10 years", "amount"=>4600, "status"=>"active"}, {"_id"=>"4", "purchase_type"=>"In Person", "$vectorize"=>"BMW 330i Sedan purchased in Manhattan NYC", "customer"=>{"name"=>"Lester M.", "phone"=>"123-456-4444", "age"=>40, "credit_score"=>802, "address"=>{"address_line"=>"12346 Broadway", "city"=>"New York", "state"=>"NY"}}, "purchase_date"=>{"$date"=>1690909891}, "seller"=>{"name"=>"Jon B.", "location"=>"Manhattan NYC"}, "items"=>[{"car"=>"BMW 330i Sedan", "color"=>"Red"}, "Extended warranty - 5 years", "Service - 5 years"], "amount"=>48510, "status"=>"active"}, {"_id"=>"5", "purchase_type"=>"Online", "$vectorize"=>"Tesla Model S purchased in Jersey City NJ", "customer"=>{"name"=>"David C.", "phone"=>"123-456-5555", "age"=>50, "credit_score"=>800, "address"=>{"address_line"=>"32345 Main Ave", "city"=>"Jersey City", "state"=>"NJ"}}, "purchase_date"=>{"$date"=>1690996291}, "seller"=>{"name"=>"Jim A.", "location"=>"Jersey City NJ"}, "items"=>[{"car"=>"Tesla Model S", "color"=>"Red"}, "Extended warranty - 5 years"], "amount"=>94990, "status"=>"active"}, {"_id"=>"6", "purchase_type"=>"In Person", "$vectorize"=>"Tesla Model X purchased in Jersey City NJ", "customer"=>{"name"=>"Chris E.", "phone"=>"123-456-6666", "age"=>43, "credit_score"=>764, "address"=>{"address_line"=>"32346 Broadway", "city"=>"New York", "state"=>"NY"}}, "purchase_date"=>{"$date"=>1691860291}, "seller"=>{"name"=>"Jim A.", "location"=>"Jersey City NJ"}, "items"=>[{"car"=>"Tesla Model X", "color"=>"Blue"}], "amount"=>109990, "status"=>"active"}, {"_id"=>"7", "purchase_type"=>"Online", "$vectorize"=>"BMW M44i Gran Coupe purchased in Brooklyn NYC", "customer"=>{"name"=>"Jeff G.", "phone"=>"123-456-7777", "age"=>66, "credit_score"=>802, "address"=>{"address_line"=>"22999 Broadway", "city"=>"New York", "state"=>"NY"}}, "purchase_date"=>{"$date"=>1692119491}, "seller"=>{"name"=>"Jasmine S.", "location"=>"Brooklyn NYC"}, "items"=>[{"car"=>"BMW M440i Gran Coupe", "color"=>"Black"}, "Extended warranty - 5 years"], "amount"=>61050, "status"=>"active"}, {"_id"=>"8", "purchase_type"=>"In Person", "$vectorize"=>"BMW X3 SUV purchased in Staten Island NYC", "customer"=>{"name"=>"Harold S.", "phone"=>"123-456-8888", "age"=>29, "credit_score"=>710, "address"=>{"address_line"=>"1234 Main St", "city"=>"Orange", "state"=>"NJ"}}, "purchase_date"=>{"$date"=>1693329091}, "seller"=>{"name"=>"Tammy S.", "location"=>"Staten Island NYC"}, "items"=>[{"car"=>"BMW X3 SUV", "color"=>"Black"}, "Extended warranty - 5 years"], "amount"=>46900, "status"=>"active"}, {"_id"=>"9", "purchase_type"=>"Online", "$vectorize"=>"Tesla Model 3 purchased in Brooklyn NYC", "customer"=>{"name"=>"Richard Z.", "phone"=>"123-456-9999", "age"=>22, "credit_score"=>690, "address"=>{"address_line"=>"22345 Broadway", "city"=>"New York", "state"=>"NY"}}, "purchase_date"=>{"$date"=>1693588291}, "seller"=>{"name"=>"Jasmine S.", "location"=>"Brooklyn NYC"}, "items"=>[{"car"=>"Tesla Model 3", "color"=>"White"}, "Extended warranty - 5 years"], "amount"=>53990, "status"=>"active"}, {"_id"=>"10", "purchase_type"=>"In Person", "$vectorize"=>"Tesla Model S purchased in Jersey City NJ", "customer"=>{"name"=>"Eric B.", "phone"=>nil, "age"=>54, "credit_score"=>780, "address"=>{"address_line"=>"9999 River Rd", "city"=>"Fair Haven", "state"=>"NJ"}}, "purchase_date"=>{"$date"=>1694797891}, "seller"=>{"name"=>"Jim A.", "location"=>"Jersey City NJ"}, "items"=>[{"car"=>"Tesla Model S", "color"=>"Black"}], "amount"=>93800, "status"=>"active"}, {"_id"=>"11", "purchase_type"=>"Online", "$vectorize"=>"Tesla Model Y purchased in Jersey City NJ", "customer"=>{"name"=>"Ann J.", "phone"=>"123-456-1112", "age"=>47, "credit_score"=>660, "address"=>{"address_line"=>"99 Elm St", "city"=>"Fair Lawn", "state"=>"NJ"}}, "purchase_date"=>{"$date"=>1695921091}, "seller"=>{"name"=>"Jim A.", "location"=>"Jersey City NJ"}, "items"=>[{"car"=>"Tesla Model Y", "color"=>"White"}, "Extended warranty - 5 years"], "amount"=>57500, "status"=>"active"}, {"_id"=>"12", "purchase_type"=>"In Person", "$vectorize"=>"BMW 540i xDrive Sedan purchased in Staten Island NYC", "customer"=>{"name"=>"John T.", "phone"=>"123-456-1123", "age"=>55, "credit_score"=>786, "address"=>{"address_line"=>"23 Main Blvd", "city"=>"Staten Island", "state"=>"NY"}}, "purchase_date"=>{"$date"=>1696180291}, "seller"=>{"name"=>"Tammy S.", "location"=>"Staten Island NYC"}, "items"=>[{"car"=>"BMW 540i xDrive Sedan", "color"=>"Black"}, "Extended warranty - 5 years"], "amount"=>64900, "status"=>"active"}, {"_id"=>"13", "purchase_type"=>"Online", "$vectorize"=>"Tesla Model 3 purchased in Manhattan NYC", "customer"=>{"name"=>"Aaron W.", "phone"=>"123-456-1133", "age"=>60, "credit_score"=>702, "address"=>{"address_line"=>"1234 4th Ave", "city"=>"New York", "state"=>"NY"}}, "purchase_date"=>{"$date"=>1697389891}, "seller"=>{"name"=>"Jon B.", "location"=>"Manhattan NYC"}, "items"=>[{"car"=>"Tesla Model 3", "color"=>"White"}, "Extended warranty - 5 years"], "amount"=>55000, "status"=>"active"}, {"_id"=>"14", "purchase_type"=>"In Person", "$vectorize"=>"Tesla Model X purchased in Brooklyn NYC", "customer"=>{"name"=>"Kris S.", "phone"=>"123-456-1144", "age"=>44, "credit_score"=>702, "address"=>{"address_line"=>"1414 14th Pl", "city"=>"Brooklyn", "state"=>"NY"}}, "purchase_date"=>{"$date"=>1698513091}, "seller"=>{"name"=>"Jasmine S.", "location"=>"Brooklyn NYC"}, "items"=>[{"car"=>"Tesla Model X", "color"=>"White"}], "amount"=>110400, "status"=>"active"}, {"_id"=>"15", "purchase_type"=>"Online", "$vectorize"=>"Tesla Model 3 purchased in Jersey City NJ", "customer"=>{"name"=>"Maddy O.", "phone"=>"123-456-1155", "age"=>41, "credit_score"=>782, "address"=>{"address_line"=>"1234 Maple Ave", "city"=>"West New York", "state"=>"NJ"}}, "purchase_date"=>{"$date"=>1701191491}, "seller"=>{"name"=>"Jim A.", "location"=>"Jersey City NJ"}, "items"=>{"car"=>"Tesla Model 3", "color"=>"White"}, "amount"=>52990, "status"=>"active"}, {"_id"=>"16", "purchase_type"=>"In Person", "$vectorize"=>"Tesla Model Y purchased in Staten Island NYC", "customer"=>{"name"=>"Tim C.", "phone"=>"123-456-1166", "age"=>38, "credit_score"=>700, "address"=>{"address_line"=>"1234 Main St", "city"=>"Staten Island", "state"=>"NY"}}, "purchase_date"=>{"$date"=>1701450691}, "seller"=>{"name"=>"Tammy S.", "location"=>"Staten Island NYC"}, "items"=>[{"car"=>"Tesla Model Y", "color"=>"White"}, "Extended warranty - 5 years"], "amount"=>58990, "status"=>"active"}, {"_id"=>"17", "purchase_type"=>"Online", "$vectorize"=>"Tesla Model 3 purchased in Jersey City NJ", "customer"=>{"name"=>"Yolanda Z.", "phone"=>"123-456-1177", "age"=>61, "credit_score"=>694, "address"=>{"address_line"=>"1234 Main St", "city"=>"Hoboken", "state"=>"NJ"}}, "purchase_date"=>{"$date"=>1702660291}, "seller"=>{"name"=>"Jim A.", "location"=>"Jersey City NJ"}, "items"=>[{"car"=>"Tesla Model 3", "color"=>"Blue"}, "Extended warranty - 5 years"], "amount"=>54900, "status"=>"active"}, {"_id"=>"18", "purchase_type"=>"Online", "$vectorize"=>"BMW 750e xDrive Sedan purchased in Manhattan NYC", "customer"=>{"name"=>"Thomas D.", "phone"=>"123-456-1188", "age"=>45, "credit_score"=>724, "address"=>{"address_line"=>"98980 20th St", "city"=>"New York", "state"=>"NY"}}, "purchase_date"=>{"$date"=>1703092291}, "seller"=>{"name"=>"Jon B.", "location"=>"Manhattan NYC"}, "items"=>[{"car"=>"BMW 750e xDrive Sedan", "color"=>"Black"}, "Extended warranty - 5 years"], "amount"=>106900, "status"=>"active"}, {"_id"=>"19", "purchase_type"=>"Online", "$vectorize"=>"BMW 330i Sedan purchased in Brooklyn NYC", "customer"=>{"name"=>"Vivian W.", "phone"=>"123-456-1199", "age"=>20, "credit_score"=>698, "address"=>{"address_line"=>"5678 Elm St", "city"=>"Hartford", "state"=>"CT"}}, "purchase_date"=>{"$date"=>1704215491}, "seller"=>{"name"=>"Jasmine S.", "location"=>"Brooklyn NYC"}, "items"=>[{"car"=>"BMW 330i Sedan", "color"=>"White"}, "Extended warranty - 5 years"], "amount"=>46980, "status"=>"active"}, {"_id"=>"20", "purchase_type"=>"In Person", "$vectorize"=>"Tesla Model Y purchased in Jersey City NJ", "customer"=>{"name"=>"Leslie E.", "phone"=>nil, "age"=>44, "credit_score"=>782, "address"=>{"address_line"=>"1234 Main St", "city"=>"Newark", "state"=>"NJ"}}, "purchase_date"=>{"$date"=>1705338691}, "seller"=>{"name"=>"Jim A.", "location"=>"Jersey City NJ"}, "items"=>[{"car"=>"Tesla Model Y", "color"=>"Black"}, "Extended warranty - 5 years"], "amount"=>59800, "status"=>"active"}, {"_id"=>"21", "purchase_type"=>"In Person", "$vectorize"=>"BMW 440i Gran Coupe purchased in Manhattan NYC", "customer"=>{"name"=>"Rachel I.", "phone"=>nil, "age"=>62, "credit_score"=>786, "address"=>{"address_line"=>"1234 Park Ave", "city"=>"New York", "state"=>"NY"}}, "purchase_date"=>{"$date"=>1706202691}, "seller"=>{"name"=>"Jon B.", "location"=>"Manhattan NYC"}, "items"=>[{"car"=>"BMW M440i Gran Coupe", "color"=>"Silver"}, "Extended warranty - 5 years", "Gap Insurance - 5 years"], "amount"=>65250, "status"=>"active"}], "options"=>{"ordered"=>false}}}

HEADERS

KeyDatatypeRequiredDescription
Tokenstring
Content-Typestring
x-embedding-api-keystring