How can I get Download Response when I am using API

Situation: using Genieacs download API to do firmware upgrade.

curl -i ‘http://localhost:7557/devices/00236a-SR552n-SR552NA084%2D0003269/tasks?timeout=3000&connection_request
-X POST
–data ‘{“name”: “download”, fileType:“1 Firmware Upgrade Image”, “file”: “tfpt://172.168.1.20/firmware.bin”}’

the firmware.bin is a sample file. I make sure the tftp url is correct. the CPE can download that file.

How can I can get below response from api?

Download Response
Transfer Complete Response

please try using just the filename and upload the file to the genieacs.
make sure, your cpe can reach the genieacs fs service and if it is on a different host or behind a proxy, please set the env variable correct, so that the cpe get’s the correct URL by the acs.

I’m assuming you used ‘tftp’ instead of ‘tfpt’ as the protocol.

Hi,

We are trying to implement “download” API and facing below error in ACS:-
faultCode: “9003”
faultString: Invalid arguments
setParameterValuesFault: null

Could you share

  1. How to resolve above issue
  2. Correct syntax for POSTing “download” API
  3. Configuration required for download API

Thanks in advance.

Thanks,
Harry

Please create your own thread instead of resurrecting a thread that is 8 months old and not really relevant to your issue.