Trouble writing to Bucket with Curl in Ansible play

I have yet to try the uri module - i will try that next - thanks for the suggestion.

Here is the output of the debug task

TASK [image-transfer : Print debug output] ****************************************************************************************************************************************************************************************
ok: [host1] => {
“msg”: “imageTransfer,source=host1,fileName=myFile.txt processStart=1615552047414,processEnd=1615552049047 1615552049047”

Here are the two ways I have tried this - using the shell and command modules

   - name: post to db
     command: curl --request POST "http://xxx.xx.xx.xx:8086/api/v2/write?org=Demo&bucket=Dimensioner&precision=ms" --header "Authorization: Token myToken" --data-binary "imageTransfer,source={{ ansible_facts.hostname }},fileName={{ item }} processStart={{ startTime.stdout }},processEnd={{ endTime.stdout }} {{ endTime.stdout }}"

- name: post to db
  shell: curl --request POST "http://xxx.xx.xx.xx:8086/api/v2/write?org=Demo&bucket=Dimensioner&precision=ms" --header "Authorization: Token myToken" --data-binary '"imageTransfer,source="{{ ansible_facts.hostname }}",fileName="{{ item }}" processStart="{{ startTime.stdout }}",processEnd="{{ endTime.stdout }}" {{ endTime.stdout }}"'