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
Accepts the file ID and fetches the metadata as per the [API documentation here](https://docs.imagekit.io/api-reference/metadata-api/get-image-metadata-for-uploaded-media-files)
401
410
```ruby
402
-
imagekit.get_file_metadata(file_id:'file_id_xyz')
411
+
imagekit.get_file_metadata(
412
+
file_id:'598821f949c0a938d57563bd'
413
+
)
403
414
```
404
415
405
416
**3. Get File Metadata from remote url**
406
417
Accepts the remote file url and fetches the metadata as per the [API documentation here](https://docs.imagekit.io/api-reference/metadata-api/get-image-metadata-from-remote-url)
Copy file from one path to another path using the source file path and the destination path as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/copy-file)
Move file from one folder to another folder using the source file path and destination path as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/move-file)
@@ -444,125 +463,139 @@ Rename file as per the [API documentation here](https://docs.imagekit.io/api-ref
444
463
445
464
```ruby
446
465
imagekitio.rename_file(
447
-
file_path:'/path/to/old-file-name.jpg',
448
-
new_file_name:'new-file-name.jpg',
449
-
purge_cache:true#optional
466
+
file_path:'/path/to/old-file-name.jpg',
467
+
new_file_name:'new-file-name.jpg',
468
+
purge_cache:true#optional
450
469
)
451
470
```
452
471
453
472
**8. Delete file**
454
473
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.
455
474
456
475
```ruby
457
-
imagekitio.delete_file(file_id: file_id)
476
+
imagekitio.delete_file(
477
+
file_id:'598821f949c0a938d57563bd'
478
+
)
458
479
```
459
480
460
481
**9. Bulk File Delete by IDs**
461
482
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
blob_record.service.download(blob_record.key) do |chunk|
493
-
temp_file.write(chunk)
494
-
end
506
+
imagekitio.purge_file_cache_status(
507
+
request_id:'598821f949c0a938d57543bd'
508
+
)
495
509
```
496
510
497
-
**13. Add Bulk Tags**
511
+
**12. Add Bulk Tags**
498
512
499
513
Add multiple tags on multiple files using array of file ids and array of tags as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/add-tags-bulk)
Remove multiple tags from multiple files using array of file ids and array of tags as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/remove-tags-bulk)
Get the bulk job status as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/copy-move-folder-status)
560
591
561
592
```ruby
562
-
imagekitio.bulk_job_status(job_id:'job_id_xyz')
593
+
imagekitio.bulk_job_status(
594
+
job_id:'5e21880d5efe355febd4cccd'
595
+
)
563
596
```
564
597
565
-
**21. Create Custom Metadata Fields**
598
+
**20. Create Custom Metadata Fields**
566
599
567
600
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)
585
618
586
619
```ruby
587
620
imagekitio.get_custom_metadata_field(
588
-
include_deleted:true#optional
621
+
include_deleted:true#optional
589
622
)
590
623
```
591
624
592
-
**23. Update Custom Metadata Fields**
625
+
**22. Update Custom Metadata Fields**
593
626
594
627
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