In a previous article, I taught you How to retrieve a script Resource from vRO via curl. That can be helpful to some people, but how about updating that script? Easy! Read on... This is a super short post since all the tough details were already outlined in the article linked above. So, assuming you already know the ID and name of the script you wish to update, all you need to do is run the following curl command:

curl --header 'Authorization: Basic REDACTED' --form 'file=@/Users/bazbill/scripts/setupCA.ps1' 'https://{{vra-fqdn}}/vco/api/resources/2706d28b-e6ca-45da-acd9-8ccff2228252'

In the lines above, you would obviously replace REDACTED with your authorization token, the file path with the path to your script that you are uploading, {{vra-fqdn}} with your vRA/vRO server's FQDN and port if necessary, and the ID of your resource element.

Hope this is found to be helpful to someone :)