Neil,
could you submit the full curl command with URL that is failing you?
Can then run it locally and see what might be wrong ...

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Thu, Sep 29, 2011 at 4:59 PM, neilalbrock <n...@atomised.coop> wrote:
> Hi there,
>
> I'm trying to use the REST batch method to add data to Neo. However, when I
> try to add anything to the index I've created, I get a '400 Bad Request'
> error. I tried individual index calls but they return a '405 Method not
> allowed' error. I'm a little lost as to why this is happening, as I've been
> able to use the Python neo4jrestclient library to carry out these
> operations.
>
> Here's a snippet of the data I'm trying to insert via the batch method:
>
> [{
>    "body": {
>        "crs": "XPZ",
>        "tps": "PENYWAUN BUS",
>        "nalco": "398202",
>        "tiploc": "ABDAPEN"
>    },
>    "to": "/node",
>    "id": 0,
>    "method": "POST"
> },
> {
>    "body": {
>        "value": "ABDAPEN",
>        "uri": "{0}",
>        "key": "code"
>    },
>    "to": "/index/node/tiploc",
>    "id": 1,
>    "method": "POST"
> },
> {
>    "body": {
>        "value": "XPZ",
>        "uri": "{0}",
>        "key": "crs"
>    },
>    "to": "/index/node/tiploc",
>    "id": 2,
>    "method": "POST"
> },
> {
>    "body": {
>        "value": "XPZPENYWAUN BUS",
>        "uri": "{0}",
>        "key": "sname"
>    },
>    "to": "/index/node/tiploc",
>    "id": 3,
>    "method": "POST"
> }]
>
> Hopefully one of you guys can shed some light on this for me.
>
> Thanks
> Neil
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Adding-index-items-via-REST-tp3379489p3379489.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to