Skip to content

Commit dfdf04a

Browse files
authored
Update REST API.md
1 parent 7e0506a commit dfdf04a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Documentation/REST API.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* [Get list of groups](#get-list-of-groups-api-reference)
1010
* [Group info](#group-info-api-reference)
1111
* [Store group](#store-group-api-reference)
12-
12+
* [Copy file to local storage](#copy-file-to-local-storage-api-reference)
1313

1414

1515
### Initialization
@@ -181,6 +181,18 @@ uploadcare.storeGroup(withUUID: "c5bec8c7-d4b6-4921-9e55-6edb027546bc~1") { (err
181181
}
182182
```
183183

184+
### Copy file to local storage ([API Reference](https://uploadcare.com/api-refs/rest-api/v0.6.0/#operation/copyFileLocal?utm_source=github&utm_medium=referral&utm_campaign=uploadcare-swift)) ###
185+
186+
```swift
187+
uploadcare.copyFileToLocalStorage(source: "6ca619a8-70a7-4777-8de1-7d07739ebbd9") { (response, error) in
188+
if let error = error {
189+
print(error)
190+
return
191+
}
192+
print(response ?? "")
193+
}
194+
```
195+
184196

185197

186198

0 commit comments

Comments
 (0)