@@ -72,7 +72,7 @@ <h1 id="api-100">API (1.0.0)</h1>
7272 < ul >
7373 < li > < a href ="#update "> Update</ a > </ li >
7474 < li > < a href ="#overwrite "> Overwrite</ a > </ li >
75- <!-- < li><a href="#bulk-update-beta ">Bulk Update (beta) </a></li> -- >
75+ < li > < a href ="#bulk-update "> Bulk Update</ a > </ li >
7676 </ ul >
7777 </ li >
7878 < li > < a href ="#patch "> PATCH</ a >
@@ -430,7 +430,7 @@ <h3 id="bulk-create">Bulk Create</h3>
430430 < p >
431431 < div class ="exHeading "> Javascript Example</ div >
432432 < pre > < code class ="jsExample ">
433- < span > const saved_obj = await fetch("https://devstore.rerum.io/v1/api/bulkCreate", {</ span >
433+ < span > const saved_objs = await fetch("https://devstore.rerum.io/v1/api/bulkCreate", {</ span >
434434 < span class ="ind1 "> method: "POST",</ span >
435435 < span class ="ind1 "> headers:{</ span >
436436 < span class ="ind2 "> "Authorization": "Bearer eyJz93a...k4laUWw" </ span >
@@ -745,7 +745,7 @@ <h3 id="bulk-update">Bulk Update</h3>
745745 < tr >
746746 < td > < code class ="language-plaintext highlighter-rouge "> /bulkUpdate</ code > </ td >
747747 < td > < code class ="language-plaintext highlighter-rouge "> [{JSON}]</ code > </ td >
748- < td > 201 < code >
748+ < td > 200 < code >
749749 < code class ="language-plaintext highlighter-rouge "> [{JSON}]</ code > </ td >
750750 </ tr >
751751 </ tbody >
@@ -769,19 +769,19 @@ <h3 id="bulk-update">Bulk Update</h3>
769769 < p >
770770 < div class ="exHeading "> Javascript Example</ div >
771771 < pre > < code class ="jsExample ">
772- < span > const saved_obj = await fetch("https://devstore.rerum.io/v1/api/bulkUpdate", {</ span >
773- < span class ="ind1 "> method: "POST ",</ span >
772+ < span > const updated_objs = await fetch("https://devstore.rerum.io/v1/api/bulkUpdate", {</ span >
773+ < span class ="ind1 "> method: "PUT ",</ span >
774774 < span class ="ind1 "> headers:{</ span >
775775 < span class ="ind2 "> "Authorization": "Bearer eyJz93a...k4laUWw" </ span >
776776 < span class ="ind2 "> "Content-Type": "application/json; charset=utf-8"</ span >
777- < span class ="ind1 "> },</ span >
778- < span class ="ind1 "> body: JSON.stringify([
777+ < span class ="ind1 "> body: JSON.stringify([{
779778 < span class ="ind2 "> "@id": "https://devstore.rerum.io/v1/id/abcdef1234567890",</ span >
780- < span class ="ind2 "> "hello": "new world",</ span >
779+ < span class ="ind2 "> "hello": "new world"</ span >
780+ < span class ="ind1 "> },</ span >
781+ < span class ="ind1 "> {</ span >
781782 < span class ="ind2 "> "@id": "https://devstore.rerum.io/v1/id/1234567890abcdef",</ span >
782783 < span class ="ind2 "> "goodbye": "old planet"</ span >
783- < span class ="ind1 "> ])</ span >
784- < span > })</ span >
784+ < span class ="ind1 "> }])</ span >
785785 < span > .then(resp => resp.json())</ span >
786786 < span > .catch(err => {throw err})
787787 </ code > </ pre >
0 commit comments