Write multiple new documents in one request

POST {{baseUrl}}/v2/namespaces/:namespace-id/collections/:collection-id/batch?id-path=irure sunt

Request Params

KeyDatatypeRequiredDescription
id-pathstringwhen adding many docs, an optional path to the ID in each document

Request Body

{"0"=>{"id"=>"A", "title"=>"Hello World", "author"=>{"name"=>"CRW", "social"=>{"foo-bar-789"=>{"followers"=>1, "likes"=>7}}}}, "1"=>{"id"=>"B", "title"=>"Hello World 2: The Sequel", "author"=>{"name"=>"CRW", "social"=>{"foo-bar-789"=>{"followers"=>1, "likes"=>7}}}}}

HEADERS

KeyDatatypeRequiredDescription
X-Cassandra-Tokenstring(Required) The token returned from the authorization endpoint for classic databases. Use this token in each request.
Content-Typestring
Acceptstring