cMetadata := '{ "name": "' + JustFName(cFilePath) + '", "mimeType": "application/zip"}'
cBoundary := "boundary123456789"
cFileData := GetFileContent( cFilePath )
cMultipart := "--" + cBoundary + CHR(13)+CHR(10)
cMultipart += "Content-Type: application/json; charset=UTF-8" + CHR(13)+CHR(10)+CHR(13)+CHR(10)
cMultipart += cMetadata + CHR(13)+CHR(10)
cMultipart += "--" + cBoundary + CHR(13)+CHR(10)
cMultipart += "Content-Type: application/zip" + CHR(13)+CHR(10)+CHR(13)+CHR(10)
cMultipart += cFileData + CHR(13)+CHR(10)
cMultipart += "--" + cBoundary + "--" + CHR(13)+CHR(10)
cTempFile := "multipart_body.tmp"
WriteFileContent( cMultipart, cTempFile )
cCommand := 'curl -X PATCH "' + cUrl + '" ' + ;
'-H "Authorization: Bearer ' + cAccessToken + '" ' + ;
'-H "Content-Type: multipart/related; boundary=' + cBoundary + '" ' + ;
'--data-binary "@' + cTempFile + '"'
Run ( cCommand )