Example request
PUT
http://localhost:7474/db/data/relationship/98/properties
Accept:
application/json; charset=UTF-8
Content-Type:
application/json
{ "jim" : "tobias" }
Example response
204:
No Content
Example request
DELETE
http://localhost:7474/db/data/relationship/82/properties
Accept:
application/json; charset=UTF-8
Example response
204:
No Content
See the example request below.
Example request
DELETE
http://localhost:7474/db/data/relationship/85/properties/cost
Accept:
application/json; charset=UTF-8
Example response
204:
No Content
Attempting to remove a property that doesn’t exist results in an error.
Example request
DELETE
http://localhost:7474/db/data/relationship/83/properties/non-existent
Accept:
application/json; charset=UTF-8
Example response
404:
Not Found
Content-Type:
application/json; charset=UTF-8
{ "message": "Relationship[83] does not have a property \"non-existent\"", "exception": "NoSuchPropertyException", "fullname": "org.neo4j.server.rest.web.NoSuchPropertyException", "stacktrace": [ "org.neo4j.server.rest.web.DatabaseActions.removeRelationshipProperty(DatabaseActions.java:645)", "org.neo4j.server.rest.web.RestfulGraphDatabase.deleteRelationshipProperty(RestfulGraphDatabase.java:620)", "java.lang.reflect.Method.invoke(Method.java:597)" ] }
Attempting to remove all properties from a relationship which doesn’t exist results in an error.
Example request
DELETE
http://localhost:7474/db/data/relationship/1234/properties
Accept:
application/json; charset=UTF-8
Example response
404:
Not Found
Content-Type:
application/json; charset=UTF-8
{ "exception": "RelationshipNotFoundException", "fullname": "org.neo4j.server.rest.web.RelationshipNotFoundException", "stacktrace": [ "org.neo4j.server.rest.web.DatabaseActions.relationship(DatabaseActions.java:170)", "org.neo4j.server.rest.web.DatabaseActions.removeAllRelationshipProperties(DatabaseActions.java:633)", "org.neo4j.server.rest.web.RestfulGraphDatabase.deleteAllRelationshipProperties(RestfulGraphDatabase.java:599)", "java.lang.reflect.Method.invoke(Method.java:597)" ] }
Attempting to remove a property from a relationship which doesn’t exist results in an error.
Example request
DELETE
http://localhost:7474/db/data/relationship/1234/properties/cost
Accept:
application/json; charset=UTF-8
Example response
404:
Not Found
Content-Type:
application/json; charset=UTF-8
{ "exception": "RelationshipNotFoundException", "fullname": "org.neo4j.server.rest.web.RelationshipNotFoundException", "stacktrace": [ "org.neo4j.server.rest.web.DatabaseActions.relationship(DatabaseActions.java:170)", "org.neo4j.server.rest.web.DatabaseActions.removeRelationshipProperty(DatabaseActions.java:639)", "org.neo4j.server.rest.web.RestfulGraphDatabase.deleteRelationshipProperty(RestfulGraphDatabase.java:620)", "java.lang.reflect.Method.invoke(Method.java:597)" ] }
Copyright © 2014 Neo Technology