diff --git a/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/files/model/FileCreationParameters.java b/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/files/model/FileCreationParameters.java index 410872130c..a5f36b081f 100644 --- a/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/files/model/FileCreationParameters.java +++ b/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/files/model/FileCreationParameters.java @@ -121,9 +121,12 @@ public Map buildParameters() { if (propagate!=null) { ret.put("propagate", propagate.toString()); } - if (sharePermission!=null) { - ret.put("sharePermission", sharePermission.toString().toLowerCase()); - } + if (sharePermission == Permission.VIEW) + ret.put("sharePermission", "View"); + + if (sharePermission == Permission.EDIT) + ret.put("sharePermission", "Edit"); + if (shareSummary!=null) { ret.put("shareSummary", shareSummary.toString()); }