Example request
PUT http://localhost:7474/db/data/relationship/73/properties
Accept: application/json
Content-Type: application/json
{
"jim" : "tobias"
}Example response
204: No Content
Example request
DELETE http://localhost:7474/db/data/relationship/4
Accept: application/json
Example response
204: No Content
See the example request below.
Example request
DELETE http://localhost:7474/db/data/relationship/6/properties/cost
Accept: application/json
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/7/properties/non-existent
Accept: application/json
Example response
404: Not Found
Content-Type: application/json
{
"message" : "Relationship[7] does not have a property \"non-existent\"",
"exception" : "NoSuchPropertyException",
"stacktrace" : [ "org.neo4j.server.rest.web.DatabaseActions.removeRelationshipProperty(DatabaseActions.java:643)", "org.neo4j.server.rest.web.RestfulGraphDatabase.deleteRelationshipProperty(RestfulGraphDatabase.java:612)", "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
Example response
404: Not Found
Content-Type: application/json
{
"exception" : "RelationshipNotFoundException",
"stacktrace" : [ "org.neo4j.server.rest.web.DatabaseActions.relationship(DatabaseActions.java:168)", "org.neo4j.server.rest.web.DatabaseActions.removeAllRelationshipProperties(DatabaseActions.java:631)", "org.neo4j.server.rest.web.RestfulGraphDatabase.deleteAllRelationshipProperties(RestfulGraphDatabase.java:592)", "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
Example response
404: Not Found
Content-Type: application/json
{
"exception" : "RelationshipNotFoundException",
"stacktrace" : [ "org.neo4j.server.rest.web.DatabaseActions.relationship(DatabaseActions.java:168)", "org.neo4j.server.rest.web.DatabaseActions.removeRelationshipProperty(DatabaseActions.java:637)", "org.neo4j.server.rest.web.RestfulGraphDatabase.deleteRelationshipProperty(RestfulGraphDatabase.java:612)", "java.lang.reflect.Method.invoke(Method.java:597)" ]
}Copyright © 2013 Neo Technology