You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* You can programmatically rename an already existing file in the media library using rename file API. This operation would rename all file versions of the file. Note: The old URLs will stop working. The file/file version URLs cached on CDN will continue to work unless a purge is requested.
"CACHE_PURGE_URL_MISSING": {message: "Missing URL parameter for this request",help: ""},
8
8
"CACHE_PURGE_STATUS_ID_MISSING": {message: "Missing Request ID parameter for this request",help: ""},
9
-
"FILE_ID_MISSING": {message: "Missing File ID parameter for this request",help: ""},
10
-
"FILE_VERSION_ID_MISSING": {message: "Missing File version ID parameter for this request",help: ""},
11
-
"FILE_ID_OR_URL_MISSING": {message: "Pass either File ID or remote URL of the image as first parameter",help: ""},
9
+
"FILE_ID_MISSING": {message: "Missing fileId parameter for this request",help: ""},
10
+
"FILE_VERSION_ID_MISSING": {message: "Missing versionId parameter for this request",help: ""},
11
+
"FILE_ID_OR_URL_MISSING": {message: "Pass either fileId or remote URL of the image as first parameter",help: ""},
12
12
"INVALID_LIST_OPTIONS": {message: "Pass a valid JSON list options e.g. {skip: 10, limit: 100}.",help: ""},
13
13
"UPDATE_DATA_MISSING": {message: "Missing file update data for this request",help: ""},
14
14
"UPDATE_DATA_TAGS_INVALID": {message: "Invalid tags parameter for this request",help: "tags should be passed as null or an array like ['tag1', 'tag2']"},
@@ -18,13 +18,13 @@ export default {
18
18
"MISSING_UPLOAD_FILE_PARAMETER": {message: "Missing file parameter for upload",help: ""},
19
19
"MISSING_UPLOAD_FILENAME_PARAMETER": {message: "Missing fileName parameter for upload",help: ""},
* The full path of the file you want to rename. For example - /path/to/file.jpg
21
+
*/
22
+
filePath: string;
23
+
/**
24
+
* The new name of the file. A filename can contain:
25
+
- Alphanumeric Characters: a-z, A-Z, 0-9 (including Unicode letters, marks, and numerals in other languages).
26
+
- Special Characters: ., _, and -. Any other character, including space, will be replaced by _.
27
+
*/
28
+
newFileName: string
29
+
/**
30
+
* Option to purge cache for the old file URL. When set to true, it will internally issue a purge cache request on CDN to remove cached content on the old URL.
0 commit comments