HTTP API

Node Properties

Get the Properties of a Node By Type and Key

Retrieve the properties of an existing node by their type and key

:GET /db/{graph}/node/{type}/{key}/properties

Example Request:

:GET /db/rage/node/User/Helene/properties

Example Response:

{ "age": 41, "name": "helene" }

Get the Properties of a Node By Id

Retrieve the properties of an existing node by their id

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

Example Request:

:GET /db/rage/node/1026/properties

Example Response:

{ "age": 41, "name": "helene" }

Reset the Properties of a Node By Type and Key

Reset the properties of an existing node by their type and key

:POST /db/{graph}/node/{type}/{key}/properties {properties}

Example Request:

:POST /db/rage/node/User/Helene/properties {"awesome":true}

Example Response:

{ "awesome":true }

Reset the Properties of a Node By Id

Reset the properties of an existing node by their id

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

Example Request:

:POST /db/rage/node/1026/properties { "age": 41, "name": "helene" }

Example Response:

{ "age": 41, "name": "helene" }

Set some Properties of a Node By Type and Key

Set some properties while keeping existing properties of an existing node by their type and key

:PUT /db/{graph}/node/{type}/{key}/properties {properties}

Example Request:

:PUT /db/rage/node/User/Helene/properties { "awesome":true }

Example Response:

{ "age": 41, "name": "helene", "awesome":true }

Set some Properties of a Node By Id

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

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

Example Request:

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

Example Response:

{ "age": 41, "name": "helene", "awesome":true }

Delete the Properties of a Node By Type and Key

Delete all of the Properties of a Node By Type and Key

:DELETE /db/{graph}/node/{type}/{key}/properties

Example Request:

:DELETE /db/rage/node/User/Helene/properties

Delete the Properties of a Node By Id

Delete all of the properties of an existing node by their id

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

Example Request:

:DELETE /db/rage/node/1026/properties

Get a Property of a Node By Type and Key

Get a property of an existing node by their type and key

:GET /db/{graph}/node/{type}/{key}/property/{property}

Example Request:

:GET /db/rage/node/User/Helene/property/name

Example Response:

{ "name": "helene" }

Get a Property of a Node By Id

Get a property of an existing node by their id

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

Example Request:

:GET /db/rage/node/1026/property/age

Example Response:

{ "age": 41 }

Set a Property of a Node By Type and Key

Set a new or existing Property of an existing node by their type and key

:PUT /db/{graph}/node/{type}/{key}/property/{property} {value}

Example Request:

:PUT /db/rage/node/User/Helene/property/age {42}

Set a Property of a Node By Id

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

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

Example Request:

:PUT /db/rage/node/1026/property/age {42}

Delete a Property of a Node By Type and Key

Delete a property of an existing node by their type and key

:DELETE /db/{graph}/node/{type}/{key}/property/{property}

Example Request:

:DELETE /db/rage/node/User/Helene/properties/age

Delete a Property of a Node By Id

Delete a property of an existing node by their id

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

Example Request:

:DELETE /db/rage/node/1026/properties/age