POST MULTIPLE BOOKS with id-path
POST {{base_doc_url}}{{doc_api}}/{{namespace}}/collections/{{collection}}/batch?id-path=book.title
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
id-path | string |
Request Body
{"0"=>{"id"=>"moby-dick", "book"=>{"title"=>"Moby Dick", "isbn"=>"12345", "author"=>["Herman Melville"], "pub-year"=>1899, "genre"=>["adventure", "ocean", "action"], "format"=>["hardback", "paperback", "epub"], "languages"=>["English", "German", "French"]}}, "1"=>{"id"=>"pride-and-prejudice", "book"=>{"title"=>"Pride and Prejudice", "isbn"=>"45674", "author"=>["Jane Austen"], "pub-year"=>1890, "genre"=>["romance", "England", "regency"], "format"=>["hardback", "paperback", "epub"], "languages"=>["English", "Japanese", "French"]}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Cassandra-Token | string | (Required) The token returned from the authorization endpoint. Use this token in each request to the database. | |
Content-Type | string |
RESPONSES
status: Created
{"name":"killrvideo"}