Updating API token meta data

Hello,

I’m trying to write a utility that retrieves pending key requests and approves them. This is working as expected. As part of this I would like to add some meta data (accessed via Edit Key-> Meta Data in the UI). Where can i find what is the minimum amount of data I need to send on a PUT token request to add meta data? I can get it to work if I GET the token and then send data attribute of the response (with my updated meta data) on the PUT request. But this is a lot of data I’d rather not touch. I’ve tried sending just the meta data section and this does not work.

So, what is the minimum amount of data I need to send to update a token?

Hmmm, you need to send back everything that is set, anything that is false or empty or nil will zero-out when it gets unmarshaled, so you can assume those values