# How can I get Download Response when I am using API

**URL:** <https://forum.genieacs.com/t/how-can-i-get-download-response-when-i-am-using-api/1712>\
**Category:** Uncategorized\
**Created:** [May 13, 2021, 9:51am UTC](https://forum.genieacs.com/t/how-can-i-get-download-response-when-i-am-using-api/1712 "2021-05-13T09:51:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![QiuGary](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/qiugary/32/586_2.png) [@QiuGary](https://forum.genieacs.com/u/QiuGary)\
**Post date:** [May 13, 2021, 9:51am UTC](https://forum.genieacs.com/t/how-can-i-get-download-response-when-i-am-using-api/1712/1 "2021-05-13T09:51:27Z")

</div>

Situation: using Genieacs download API to do firmware upgrade.

curl -i ‘[http://localhost:7557/devices/00236a-SR552n-SR552NA084%2D0003269/tasks?timeout=3000&connection\_request](http://localhost:7557/devices/00236a-SR552n-SR552NA084%252D0003269/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

---

<div class="post-metadata">

**Author:** ![JonasGhost](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/jonasghost/32/286_2.png) [@JonasGhost](https://forum.genieacs.com/u/JonasGhost)\
**Post date:** [May 14, 2021, 1:35pm UTC](https://forum.genieacs.com/t/how-can-i-get-download-response-when-i-am-using-api/1712/2 "2021-05-14T13:35:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![SummaCumWilly](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/summacumwilly/32/559_2.png) [@SummaCumWilly](https://forum.genieacs.com/u/SummaCumWilly)\
**Post date:** [May 18, 2021, 11:27am UTC](https://forum.genieacs.com/t/how-can-i-get-download-response-when-i-am-using-api/1712/3 "2021-05-18T11:27:27Z")

</div>

> [@QiuGary](#):
>
> –data ‘{“name”: “download”, fileType:“1 Firmware Upgrade Image”, “file”: “tfpt://172.168.1.20/firmware.bin”}’

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

---

<div class="post-metadata">

**Author:** ![Sainih5](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@Sainih5](https://forum.genieacs.com/u/Sainih5)\
**Post date:** [January 24, 2022, 3:11pm UTC](https://forum.genieacs.com/t/how-can-i-get-download-response-when-i-am-using-api/1712/4 "2022-01-24T15:11:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [January 24, 2022, 5:53pm UTC](https://forum.genieacs.com/t/how-can-i-get-download-response-when-i-am-using-api/1712/5 "2022-01-24T17:53:18Z")

</div>

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