Skip to main content
Question

Powershell and Updating Metadata


Forum|alt.badge.img

I have been messing around a bit with metadata templates and Box API.  I found that I’m required to use the PUT method when updating a file or folder, but I cannot for the life of me figure out why I keep getting errors from the server.

https://developer.box.com/guides/metadata/instances/update/#:~:text=To%20update%20the%20metadata%20to,data%20on%20the%20template%20instance.

Using the link above, I have been trying to get the payload to match this exactly, but to no avail.

I have tried using “PUT” to post the payload, but I receive an unsupported media type, if I wing it and put POST, it says it’s a bad request.

I use POST to apply the template in question, and it works just fine, but I seem to be missing the connection between Powershell, PUT, and updating metadata via Box API.

Does anyone have an example of a successful metadata update via powershell? For a folder, specifically.

 

0 replies

Be the first to reply!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings