Write multiple new documents in one request
POST {{baseUrl}}/v2/namespaces/:namespace-id/collections/:collection-id/batch?id-path=irure sunt
Request Params
Key | Datatype | Required | Description |
---|
id-path | string | | when 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}}}}}
Key | Datatype | Required | Description |
---|
X-Cassandra-Token | string | | (Required) The token returned from the authorization endpoint for classic databases. Use this token in each request. |
Content-Type | string | | |
Accept | string | | |