# setParameterValues by NBI

**URL:** <https://forum.genieacs.com/t/setparametervalues-by-nbi/5738>\
**Category:** Uncategorized\
**Created:** [July 16, 2024, 12:05pm UTC](https://forum.genieacs.com/t/setparametervalues-by-nbi/5738 "2024-07-16T12:05:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felipe](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/felipe/32/1949_2.png) [@Felipe](https://forum.genieacs.com/u/Felipe)\
**Post date:** [July 16, 2024, 12:05pm UTC](https://forum.genieacs.com/t/setparametervalues-by-nbi/5738/1 "2024-07-16T12:05:50Z")

</div>

Hi all,

I’m trying to set a parameter value by nbi, get no error but parameter was not set, that’s how I’m doing:

```auto
const params = [["InternetGatewayDevice.LANDevice.1.Wifi.NeighboringWiFiDiagnostic.DiagnosticsState", "Requested", "xsd:string"]],

const opt = {
    method: "POST",
    headers: {
        "Content-Type": "application/json",
        //"x-api-key": nbiToken,
    },
    body: JSON.stringify({
        name: "setParameterValues",
        parameterValues: params,
    }),
}
const requestChangeParams= await fetch('http://{HOST}/devices/{DEVICE-ID}/tasks?connection_request', opt)

```

I did the same way for other parameters and it worked

Any susgestion what’s wrong?

---

<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:** [July 22, 2024, 5:21pm UTC](https://forum.genieacs.com/t/setparametervalues-by-nbi/5738/2 "2024-07-22T17:21:20Z")

</div>

You would need to post the error message you are getting.
