powershellwrapper
powershellwrapper copied to clipboard
Missing Documentation: Keep an existing file when updating flexible asset
I have a flexible asset type that includes a file trait. I have the API documentation for how to upload something new as an encoded string, but I have a file already existing in an asset I want to update other traits for, and as we know, sending a data blob with null/missing traits writes them as null. How can I update this asset type without losing the attached files (Not documents/related items)?
You have to upload the file each time because the API is destructive. I remember reading about this on their support forum as well.
Disclaimer: I don't use IT Glue anymore (don't work at old job) so my knowledge could be outdated.