Move a file to a new location in Cloud Storage
Contents
[
Hide
]
This REST API moves a file to a new location in Cloud Storage.
Move a file to a new location in Cloud Storage REST API
Server | Method | Endpoint |
---|---|---|
https://api.aspose.cloud/v4.0 |
PUT | /words/storage/file/move/{srcPath} |
, where:
srcPath
(required) — source file’s path e.g. ‘/Folder 1/file.ext’ or ‘/Bucket/Folder 1/file.ext’
You can use the following parameters in a REST request:
Parameter Name | Data Type | Required/Optional | Description |
---|---|---|---|
destPath |
string | Required | Destination file path e.g. ‘/dest.ext’ |
srcStorageName |
string | Optional | Source storage name |
destStorageName |
string | Optional | Destination storage name |
versionId |
string | Optional | File version ID to move |
Note: to access this REST API, you need to register and get personal credentials. Use the ‘Quick Start’ guide to go through the procedure in a couple of minutes.
Move a file to a new location in Cloud Storage usage examples
Let’s look at practical examples of using the web service. You can do this both with cURL and Postman utilities, and from your code in various programming languages: Python, Java, JavaScript, C#, PHP, C++, Go, Ruby, Swift, Dart.
How to move a file to a new location in Cloud Storage with cURL or Postman
One of the easiest and fastest ways to call a REST API is to use cURL or Postman:
How to move a file to a new location in Cloud Storage in Python, Java, C#, C++, JavaScript and other programming languages
Using SDK is the quickest way to speed up the development. Please take a look at the provided code examples to quickly call this web service from your favourite programming language:
See Also
- GitHub repository — explore Aspose.Words Cloud SDK Family. These software libraries take care of all low-level document-processing details.