itglue / powershellwrapper

This PowerShell module acts as a wrapper for the IT Glue API.
Apache License 2.0
120 stars 51 forks source link

Missing Documentation: Keep an existing file when updating flexible asset #161

Open LastElf opened 1 year ago

LastElf commented 1 year ago

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)?

ecspresso commented 1 year ago

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.