[[rest-api-set-all-properties-on-a-relationship]]
=== Set all properties on a relationship ===



.Starting Graph
["dot", "Starting-Graph-Set-relationship-property1.svg", "neoviz"]
----
  N64 [
    label = "{Node\[64\]|name = \'Juliet\'\l}"
  ]
  N65 [
    label = "{Node\[65\]|name = \'Romeo\'\l}"
  ]
  N65 -> N64 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LOVES\ncost = \'high\'\lsince = \'1day\'\l"
  ]
----


.Final Graph
["dot", "Final-Graph-set-all-properties-on-a-relationship.svg", "neoviz"]
----
  N64 [
    label = "{Node\[64\]|name = \'Juliet\'\l}"
  ]
  N65 [
    label = "{Node\[65\]|name = \'Romeo\'\l}"
  ]
  N65 -> N64 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LOVES\nhappy = false\l"
  ]
----

_Example request_

* *+PUT+*  +http://localhost:7474/db/data/relationship/27/properties+
* *+Accept:+* +application/json+
* *+Content-Type:+* +application/json+
[source,javascript]
----
{
  "happy" : false
}
----


_Example response_

* *+204:+* +No Content+
[source,javascript]
----

----


