One quick follow-up. Since this is not an API reference doc, but example based in powershell, can you help translate this to a curl request or just put the reference doc here? Thx!
Would something like this work assuming variables are complete?
Is content type mutlipart/form-data required? If so, what should the field name be for the uploaded document? Normally multipart data has a name and value like with curl this would be --form <name=content>
URI=https://$PW_HOST/$ENDPOINT/$DOCID?DocumentName=$DOC_NAME&DocumentDescription=$DOC_DESCRIPTION
curl -s -H "APIKey: $APIKEY" --data "$PWDOC" $URI