# API setparameterValues

**URL:** <https://forum.genieacs.com/t/api-setparametervalues/2906>\
**Category:** Uncategorized\
**Created:** [August 29, 2022, 12:53pm UTC](https://forum.genieacs.com/t/api-setparametervalues/2906 "2022-08-29T12:53:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BernardoGatt0](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/bernardogatt0/32/948_2.png) [@BernardoGatt0](https://forum.genieacs.com/u/BernardoGatt0)\
**Post date:** [August 29, 2022, 12:53pm UTC](https://forum.genieacs.com/t/api-setparametervalues/2906/1 "2022-08-29T12:53:33Z")

</div>

I have a web interface in which it will update the MRU parameter in genieacs. I’m having trouble making the route and calling the API, because the documentation is very superficial. Would you have any example of code ready in JavaScript to have it as a base?

---

<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:** [August 29, 2022, 4:10pm UTC](https://forum.genieacs.com/t/api-setparametervalues/2906/2 "2022-08-29T16:10:40Z")

</div>

Can you be more specific about what you are trying to accomplish? Are you trying to add parameters to an existing page in the GenieACS web UI? Query data from the GenieACS NBI to show in your own UI?

---

<div class="post-metadata">

**Author:** ![BernardoGatt0](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/bernardogatt0/32/948_2.png) [@BernardoGatt0](https://forum.genieacs.com/u/BernardoGatt0)\
**Post date:** [August 30, 2022, 11:15am UTC](https://forum.genieacs.com/t/api-setparametervalues/2906/3 "2022-08-30T11:15:54Z")

</div>

Good morning, I would like to use the API to change the MRU parameter through my graphical interface, using tasks:  
setParameterValues:  
curl -i ‘[http://localhost:7557/devices/00236a-SR552n-SR552NA084%252D0003269/tasks?timeout=3000&connection\_request](http://localhost:7557/devices/00236a-SR552n-SR552NA084%252D0003269/tasks?timeout=3000&connection_request)’   
-X POST   
–data ‘{“name”: “setParameterValues”, “parameterValues”: [[“InternetGatewayDevice.ManagementServer.UpgradesManaged”,false]]}’

I’m not sure how to use this API call, so I’d like a more concrete example using it.

---

<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:** [August 30, 2022, 6:28pm UTC](https://forum.genieacs.com/t/api-setparametervalues/2906/4 "2022-08-30T18:28:35Z")

</div>

I’m honestly not sure whats more concrete than what you have right there. That curl call will set the value of `InternetGatewayDevice.ManagementServer.UpgradesManaged` to false for the device with ID `00236a-SR552n-SR552NA084%2D0003269`.

This curl call will set the value of the MRU to 1492 for the 1st WANPPPConnection on the 1st WANConnectionDevice on the 1st WANDevice.

```auto
curl -i 'http://localhost:7557/devices/00236a-SR552n-SR552NA084%252D0003269/tasks?timeout=3000&connection_request'
-X POST
–data '{"name": "setParameterValues", "parameterValues": [["InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.CurrentMRUSize",1492]]}'

```

All of this information is in the [documentation](https://docs.genieacs.com/en/latest/api-reference.html#post-devices-device-id-tasks-connection-request).
