fix the request body sent when creating relationships

This commit is contained in:
Rodica Sutu
2017-09-26 16:41:16 +03:00
committed by Tom Page
parent 88ac926335
commit a2f6db6771

View File

@@ -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