Skip to content

Commit a63b25f

Browse files
committed
add invalidate flag to rename and explicit
1 parent d9fe666 commit a63b25f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cloudinary-core/src/main/java/com/cloudinary/Uploader.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ public Map rename(String fromPublicId, String toPublicId, Map options) throws IO
166166
params.put("overwrite", ObjectUtils.asBoolean(options.get("overwrite"), false).toString());
167167
params.put("from_public_id", fromPublicId);
168168
params.put("to_public_id", toPublicId);
169+
params.put("invalidate", ObjectUtils.asBoolean(options.get("invalidate"), false).toString());
169170
return callApi("rename", params, options, null);
170171
}
171172

@@ -190,6 +191,7 @@ public Map explicit(String publicId, Map options) throws IOException {
190191
if (options.get("context") != null) {
191192
params.put("context", ObjectUtils.encodeMap(options.get("context")));
192193
}
194+
params.put("invalidate", ObjectUtils.asBoolean(options.get("invalidate"), false).toString());
193195
return callApi("explicit", params, options, null);
194196
}
195197

0 commit comments

Comments
 (0)