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
+59-16Lines changed: 59 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -470,16 +470,59 @@ imagekitio.rename_file(
470
470
)
471
471
```
472
472
473
-
**8. Delete file**
473
+
**8. Delete File**
474
+
474
475
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
476
476
477
```ruby
477
478
imagekitio.delete_file(
478
479
file_id:'598821f949c0a938d57563bd'
479
480
)
480
481
```
482
+
**9. File versions**
483
+
484
+
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.
485
+
486
+
```ruby
487
+
imagekitio.file_versions(
488
+
file_id:'598821f949c0a938d57563bd'
489
+
)
490
+
```
491
+
**10. File version details**
492
+
493
+
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.
494
+
495
+
```ruby
496
+
imagekitio.file_version_detail(
497
+
file_id:'598821f949c0a938d57563bd',
498
+
version_id:'846321f949c0a938d57567ty'
499
+
)
500
+
```
501
+
502
+
**11. Delete file version**
503
+
504
+
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.
505
+
506
+
```ruby
507
+
imagekitio.delete_file_version(
508
+
file_id:'598821f949c0a938d57563bd',
509
+
version_id:'846321f949c0a938d57567ty'
510
+
)
511
+
```
512
+
513
+
**12. Restore file version**
514
+
515
+
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.
516
+
517
+
```ruby
518
+
imagekitio.restore_file_version(
519
+
file_id:'598821f949c0a938d57563bd',
520
+
version_id:'846321f949c0a938d57567ty'
521
+
)
522
+
```
523
+
524
+
**13. Bulk File Delete by IDs**
481
525
482
-
**9. Bulk File Delete by IDs**
483
526
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
527
deleted.
485
528
@@ -489,7 +532,7 @@ imagekitio.delete_bulk_files(
489
532
)
490
533
```
491
534
492
-
**10. Purge Cache**
535
+
**14. Purge Cache**
493
536
Programmatically issue a clear cache request as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/purge-cache).
494
537
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
558
@@ -520,7 +563,7 @@ imagekitio.add_bulk_tags(
520
563
)
521
564
```
522
565
523
-
**13. Delete Bulk Tags**
566
+
**17. Delete Bulk Tags**
524
567
525
568
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
569
@@ -531,7 +574,7 @@ imagekitio.delete_bulk_tags(
531
574
)
532
575
```
533
576
534
-
**14. Delete Bulk Ai Tags**
577
+
**18. Delete Bulk Ai Tags**
535
578
536
579
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
591
@@ -554,7 +597,7 @@ imagekitio.create_folder(
554
597
```
555
598
556
599
557
-
**16. Copy Folder**
600
+
**20. Copy Folder**
558
601
559
602
Copy folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/copy-folder)
560
603
@@ -565,7 +608,7 @@ imagekitio.copy_folder(
565
608
)
566
609
```
567
610
568
-
**17. Move Folder**
611
+
**21. Move Folder**
569
612
570
613
Move folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/move-folder)
571
614
@@ -576,7 +619,7 @@ imagekitio.move_folder(
576
619
)
577
620
```
578
621
579
-
**18. Delete Folder**
622
+
**22. Delete Folder**
580
623
581
624
Delete folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/delete-folder)
582
625
@@ -586,7 +629,7 @@ imagekitio.delete_folder(
586
629
)
587
630
```
588
631
589
-
**19. Bulk Job Status**
632
+
**23. Bulk Job Status**
590
633
591
634
Get the bulk job status as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/copy-move-folder-status)
592
635
@@ -596,7 +639,7 @@ imagekitio.bulk_job_status(
596
639
)
597
640
```
598
641
599
-
**20. Create Custom Metadata Fields**
642
+
**24. Create Custom Metadata Fields**
600
643
601
644
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