1
0
Fork 0
arangodb/Documentation/Examples/RestImportJsonEdgeInvalid.g...

19 lines
459 B
Plaintext

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/import?collection=links&type=list&details=true <<EOF
[{"name":"some name"}]
EOF
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"error" : false,
"created" : 0,
"errors" : 1,
"empty" : 0,
"updated" : 0,
"ignored" : 0,
"details" : [
"at position 1: missing '_from' or '_to' attribute, offending document: {\"name\":\"some name\"}"
]
}