Skip to main content

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.

 

Be the first to reply!

Reply