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
Copy file name to clipboardExpand all lines: README.md
+93-18Lines changed: 93 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -443,7 +443,8 @@ Copy file from one path to another path using the source file path and the desti
443
443
```ruby
444
444
imagekitio.copy_file(
445
445
source_file_path:'/path/to/file.jpg',
446
-
destination_path:'/folder/to/copy/into'
446
+
destination_path:'/folder/to/copy/into',
447
+
include_file_versions:true#default false
447
448
)
448
449
```
449
450
@@ -470,16 +471,59 @@ imagekitio.rename_file(
470
471
)
471
472
```
472
473
473
-
**8. Delete file**
474
+
**8. Delete File**
475
+
474
476
Delete a file as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/delete-file). The method accepts the file ID of the file that has to be deleted.
475
477
476
478
```ruby
477
479
imagekitio.delete_file(
478
480
file_id:'598821f949c0a938d57563bd'
479
481
)
480
482
```
483
+
**9. File versions**
484
+
485
+
Get all file versions as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/get-file-versions). The method accepts the file ID of the file.
486
+
487
+
```ruby
488
+
imagekitio.file_versions(
489
+
file_id:'598821f949c0a938d57563bd'
490
+
)
491
+
```
492
+
**10. File version details**
493
+
494
+
Get all file version detail as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/get-file-version-details). The method accepts the file ID and version ID of the file.
495
+
496
+
```ruby
497
+
imagekitio.file_version_detail(
498
+
file_id:'598821f949c0a938d57563bd',
499
+
version_id:'846321f949c0a938d57567ty'
500
+
)
501
+
```
502
+
503
+
**11. Delete file version**
504
+
505
+
Delete file version as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/delete-file-version). The method accepts the file ID and version ID of the file.
506
+
507
+
```ruby
508
+
imagekitio.delete_file_version(
509
+
file_id:'598821f949c0a938d57563bd',
510
+
version_id:'846321f949c0a938d57567ty'
511
+
)
512
+
```
513
+
514
+
**12. Restore file version**
515
+
516
+
Restore deleted file version as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/restore-file-version). The method accepts the file ID and version ID of the file.
517
+
518
+
```ruby
519
+
imagekitio.restore_file_version(
520
+
file_id:'598821f949c0a938d57563bd',
521
+
version_id:'846321f949c0a938d57567ty'
522
+
)
523
+
```
524
+
525
+
**13. Bulk File Delete by IDs**
481
526
482
-
**9. Bulk File Delete by IDs**
483
527
Delete a file as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/delete-files-bulk). The method accepts a list of file IDs of files that has to be
484
528
deleted.
485
529
@@ -489,7 +533,7 @@ imagekitio.delete_bulk_files(
489
533
)
490
534
```
491
535
492
-
**10. Purge Cache**
536
+
**14. Purge Cache**
493
537
Programmatically issue a clear cache request as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/purge-cache).
494
538
Accepts the full URL of the file for which the cache has to be cleared.
Add multiple tags on multiple files using an array of file ids and an array of tags as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/add-tags-bulk)
515
559
@@ -520,7 +564,7 @@ imagekitio.add_bulk_tags(
520
564
)
521
565
```
522
566
523
-
**13. Delete Bulk Tags**
567
+
**17. Delete Bulk Tags**
524
568
525
569
Remove multiple tags from multiple files using an array of file ids and an array of tags as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/remove-tags-bulk)
526
570
@@ -531,7 +575,7 @@ imagekitio.delete_bulk_tags(
531
575
)
532
576
```
533
577
534
-
**14. Delete Bulk Ai Tags**
578
+
**18. Delete Bulk Ai Tags**
535
579
536
580
Delete bulk ai tags as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/remove-aitags-bulk)
Create folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/create-folder)
548
592
@@ -554,18 +598,19 @@ imagekitio.create_folder(
554
598
```
555
599
556
600
557
-
**16. Copy Folder**
601
+
**20. Copy Folder**
558
602
559
603
Copy folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/copy-folder)
560
604
561
605
```ruby
562
606
imagekitio.copy_folder(
563
607
source_folder_path:'/folder/to/copy',
564
-
destination_path:'/folder/to/copy/into'
608
+
destination_path:'/folder/to/copy/into',
609
+
include_file_versions:true#default false
565
610
)
566
611
```
567
612
568
-
**17. Move Folder**
613
+
**21. Move Folder**
569
614
570
615
Move folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/move-folder)
571
616
@@ -576,7 +621,7 @@ imagekitio.move_folder(
576
621
)
577
622
```
578
623
579
-
**18. Delete Folder**
624
+
**22. Delete Folder**
580
625
581
626
Delete folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/delete-folder)
582
627
@@ -586,7 +631,7 @@ imagekitio.delete_folder(
586
631
)
587
632
```
588
633
589
-
**19. Bulk Job Status**
634
+
**23. Bulk Job Status**
590
635
591
636
Get the bulk job status as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/copy-move-folder-status)
592
637
@@ -596,7 +641,7 @@ imagekitio.bulk_job_status(
596
641
)
597
642
```
598
643
599
-
**20. Create Custom Metadata Fields**
644
+
**24. Create Custom Metadata Fields**
600
645
601
646
Create custom metadata fields as per the [API documentation here](https://docs.imagekit.io/api-reference/custom-metadata-fields-api/create-custom-metadata-field)
Get the custom metadata fields as per the [API documentation here](https://docs.imagekit.io/api-reference/custom-metadata-fields-api/get-custom-metadata-field)
Update custom metadata fields as per the [API documentation here](https://docs.imagekit.io/api-reference/custom-metadata-fields-api/update-custom-metadata-field)
Delete custom metadata fields as per the [API documentation here](https://docs.imagekit.io/api-reference/custom-metadata-fields-api/delete-custom-metadata-field)
0 commit comments