# API refreshObject muliple objects

**URL:** <https://forum.genieacs.com/t/api-refreshobject-muliple-objects/223>\
**Category:** Uncategorized\
**Created:** [August 13, 2019, 5:39pm UTC](https://forum.genieacs.com/t/api-refreshobject-muliple-objects/223 "2019-08-13T17:39:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cubicalmonkey](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/cubicalmonkey/32/1169_2.png) [@cubicalmonkey](https://forum.genieacs.com/u/cubicalmonkey)\
**Post date:** [August 13, 2019, 5:39pm UTC](https://forum.genieacs.com/t/api-refreshobject-muliple-objects/223/1 "2019-08-13T17:39:28Z")

</div>

Hi, I was curious if it’s possible send an refreshObject via the API to multiple objects?  
I see on the API documentation section you could send multiple getParameterValues and multiple setParameterValues.

I have a list of about 5 objects which presently I’m sending individually via API.

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [August 14, 2019, 3:04am UTC](https://forum.genieacs.com/t/api-refreshobject-muliple-objects/223/2 "2019-08-14T03:04:44Z")

</div>

That’s not possible because the GetParamterNames method in TR-069 only takes a single parameter. But you can send multiple tasks and only trigger connection request in the last request to have them all processed within the same session.

---

<div class="post-metadata">

**Author:** ![cubicalmonkey](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/cubicalmonkey/32/1169_2.png) [@cubicalmonkey](https://forum.genieacs.com/u/cubicalmonkey)\
**Post date:** [August 22, 2019, 11:19am UTC](https://forum.genieacs.com/t/api-refreshobject-muliple-objects/223/3 "2019-08-22T11:19:28Z")

</div>

Awww ok. Thanks for the info, that makes sense now.

---

<div class="post-metadata">

**Author:** ![pgonis1](https://avatars.discourse-cdn.com/v4/letter/p/7ba0ec/32.png) [@pgonis1](https://forum.genieacs.com/u/pgonis1)\
**Post date:** [November 19, 2020, 8:21am UTC](https://forum.genieacs.com/t/api-refreshobject-muliple-objects/223/4 "2020-11-19T08:21:48Z")

</div>

Hi ,

As i am new on this operations , can you please clarify what do you mean by trigger connection ?  
After send a task like then i am getting and \_id. How to procced and refresh this object ?

…/tasks?timeout=3000&connection\_request’ --data ‘{“name”: “getParameterValues”, “parameterNames”: [“InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANPPPConnection.1.Stats.EthernetBytesReceived”],“status”:“pending” }’

---

<div class="post-metadata">

**Author:** ![lavira](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@lavira](https://forum.genieacs.com/u/lavira)\
**Post date:** [November 19, 2020, 2:23pm UTC](https://forum.genieacs.com/t/api-refreshobject-muliple-objects/223/5 "2020-11-19T14:23:13Z")

</div>

Hi, the remote connection trigger is the &connection\_request parameter in the URL. If you don’t add it on the API request, genieacs will queue the tasks and when you make a API call with it, it will send all the queue tasks in the same tr069 session.

---

<div class="post-metadata">

**Author:** ![pgonis1](https://avatars.discourse-cdn.com/v4/letter/p/7ba0ec/32.png) [@pgonis1](https://forum.genieacs.com/u/pgonis1)\
**Post date:** [November 19, 2020, 2:25pm UTC](https://forum.genieacs.com/t/api-refreshobject-muliple-objects/223/6 "2020-11-19T14:25:17Z")

</div>

Hi,

Already add it but still the refresh of my object is not executed. I don’t know if something else is required in my command.

---

<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:** [November 19, 2020, 7:04pm UTC](https://forum.genieacs.com/t/api-refreshobject-muliple-objects/223/7 "2020-11-19T19:04:10Z")

</div>

> [@pgonis1](#):
>
> Already add it but still the refresh of my object is not executed

Adding connection\_request is not a guarantee that the parameters will be refreshed, only that GenieACS will attempt a connection with the CPE. If the CPE is offline, or is not responding then nothing will happen.

What is in your cwmp log file?
