Commit 4bbc48317cb035fff0288a0c0527d56eb10ae902
Merge branch 'master' of github.com:thingsboard/thingsboard
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -1139,7 +1139,7 @@ public class RestClient implements ClientHttpRequestInterceptor, Closeable { |
1139 | 1139 | } |
1140 | 1140 | |
1141 | 1141 | public void saveRelation(EntityRelation relation) { |
1142 | - restTemplate.postForLocation(baseURL + "/api/relation", null); | |
1142 | + restTemplate.postForLocation(baseURL + "/api/relation", relation); | |
1143 | 1143 | } |
1144 | 1144 | |
1145 | 1145 | public void deleteRelation(EntityId fromId, String relationType, RelationTypeGroup relationTypeGroup, EntityId toId) { | ... | ... |