Skip to main content
Question

Possible to Set Tags on existing files systematically?

  • May 22, 2025
  • 2 replies
  • 49 views

Forum|alt.badge.img

Looking to Set a Tag on existing Office Files across 10 Root folders with 1000s of files and subfolders. 

 

As an example, I want to set a Tag using the current filename.

Is that possible? If so, how?

 

A second part, is it possible to have a template so all new files gets that tag?

 

 

2 replies

Forum|alt.badge.img

 you can set tags per file using the "Update File Info" API

 

https://developer.box.com/v2.0/reference#update-a-files-information

 

You could write a script that either loops over all files/folders, or does a search, and then applies tags per file.

 

 


Forum|alt.badge.img

Hi @cbetta

 

Would you have an example of this script? I am looking for a template I can use that will loop over all files in my 'Photos' folder and then allow me to apply the individual tags for each file.