Andrew, You can either update just one property or set and override all of them, see http://docs.neo4j.org/chunked/snapshot/rest-api-node-properties.html
Does that help? /peter On Friday, October 14, 2011, andrew ton <andrewt...@yahoo.com> wrote: > > > Hello, > > According to the Neo4j REST API to set a property on a node I send a PUT request to the node's property URL e.g. http://localhost:7474/db/data/node/5/properties/{propertyname}. > This api accepts a JSON object. How do I send a json object that has property name and value? The sample in the document shows the body of PUT is just a string while the property name is in the URL. > > Is it correct that the API should be http://localhost:7474/db/data/node/5/properties and the body has an JSONObject e.g. {"propertyName":"propertyValue"} ? > If so then what is the difference between setting property and updating property ? > > Thanks, > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- 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. _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user