I am trying to make a POST call work from within Google Apps scripts into the V2 create API.
I have it working, but it doesn't execute the user_data formatted in either cloud-init or just as shell commands. Nothing sh...
I discovered that you can use the Unicode encoding to put the LF in the json, and all it well now. For those wondering the code is :
so "user_data" needed to look like this
"user_data": "#!/bin/bash \u000A ...
DigitalOcean API and CLI (doctl)