HTTP API

Relationship Properties

Get the Properties of a Relationship By Id

Retrieve the properties of an existing relationship by their id

:GET /db/{graph}/relationship/{id}/properties

Example Request:

:GET /db/rage/relationship/1026/properties

Example Response:

{ "weight": 1.0 }

Reset the Properties of a Relationship By Id

Reset the properties of an existing relationship by their id

:POST  /db/{graph}/relationship/{id}/properties {properties}

Example Request:

:POST /db/rage/relationship/1026/properties { "weight": 0.5, "valid": true }

Example Response:

{ "weight": 0.5, "valid": true }

Set some Properties of a Relationship By Id

Set some properties while keeping existing properties of an existing relationship by their id

:PUT /db/{graph}/relationship/{id}/properties {properties}

Example Request:

:PUT /db/rage/relationship/1026/properties { "awesome":true }

Example Response:

{ "weight": 1.0, "awesome":true }

Delete all of the Properties of a Relationship By Id

Reset the properties of an existing relationship by their id

:DELETE /db/{graph}/relationship/{id}/properties

Example Request:

:DELETE /db/rage/relationship/1026/properties

Get a Property of a Relationship By Id

Get a property of an existing relationship by their id

:GET /db/{graph}/relationship/{id}/property/{property}

Example Request:

:GET /db/rage/relationship/1026/property/weight

Example Response:

{ "weight": 1.0 }

Set a Property of a Relationship By Id

Set a new or existing Property of a relationship by their id

:PUT /db/{graph}/relationship/{id}/property {value}

Example Request:

:PUT /db/rage/relationship/1026/property/weight {0.7}

Delete a Property of a Relationship By Id

Delete a property of an existing relationship by their id

:DELETE /db/{graph}/relationship/{id}/property/{property}

Example Request:

:DELETE /db/rage/relationship/1026/properties/weight