From a2f6db6771975e7ad723fbf5838bf59fb2507345 Mon Sep 17 00:00:00 2001 From: Rodica Sutu Date: Tue, 26 Sep 2017 16:41:16 +0300 Subject: [PATCH] fix the request body sent when creating relationships --- .../main/java/org/alfresco/rest/v0/CustomDefinitionsAPI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/CustomDefinitionsAPI.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/CustomDefinitionsAPI.java index 6a29ae5b09..257ac05bb7 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/CustomDefinitionsAPI.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/CustomDefinitionsAPI.java @@ -115,7 +115,7 @@ public class CustomDefinitionsAPI extends BaseAPI { //create the request body JSONObject requestParams = new JSONObject(); - requestParams.put("recordNodeIdto", NODE_REF_WORKSPACE_SPACES_STORE + recordNodeIdto); + requestParams.put("toNode", NODE_REF_WORKSPACE_SPACES_STORE + recordNodeIdto); requestParams.put("refId", getCustomReferencesId(adminUser, adminPassword, relationshipType .getDefinition())); //send the API request to create the relationship