Skip to content

Commit c38083f

Browse files
authored
Update README.md
1 parent 3a095fc commit c38083f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,31 @@ of the batch failed due to an integrity violation:
598598

599599
The response status code will always be 424 (failed dependency) in case of any failure of one of the batch operations.
600600

601+
To insert multiple records into this table the request can be written in URL format as:
602+
603+
POST /records/posts
604+
605+
The body should contain an array of records to be inserted:
606+
607+
[
608+
{
609+
"title": "Hello world!",
610+
"content": "Welcome to the first post.",
611+
"created": "2018-03-05T20:12:56Z"
612+
},
613+
{
614+
"title": "Black is the new red",
615+
"content": "This is the second post.",
616+
"created": "2018-03-06T21:34:01Z"
617+
}
618+
]
619+
620+
The return value is also an array containing the primary keys of the newly inserted records:
621+
622+
[1,2]
623+
624+
Note that batch operation for DELETE follows the same pattern as PUT, but without a body.
625+
601626
### Spatial support
602627

603628
For spatial support there is an extra set of filters that can be applied on geometry columns and that starting with an "s":

0 commit comments

Comments
 (0)