# How ot use POST api to set same value

**URL:** <https://forum.genieacs.com/t/how-ot-use-post-api-to-set-same-value/1359>\
**Category:** Uncategorized\
**Created:** [January 15, 2021, 7:55am UTC](https://forum.genieacs.com/t/how-ot-use-post-api-to-set-same-value/1359 "2021-01-15T07:55:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zzz](https://avatars.discourse-cdn.com/v4/letter/z/cc9497/32.png) [@zzz](https://forum.genieacs.com/u/zzz)\
**Post date:** [January 15, 2021, 7:55am UTC](https://forum.genieacs.com/t/how-ot-use-post-api-to-set-same-value/1359/1 "2021-01-15T07:55:32Z")

</div>

[http://192.1.1.30:7557/devices/0017A5-XDSL%20Router-123456/tasks?connection\_request](http://192.1.1.30:7557/devices/0017A5-XDSL%2520Router-123456/tasks?connection_request)

{

“name”: “setParameterValues”,

“parameterValues”: [

```
["InternetGatewayDevice.DownloadDiagnostics.DSCP", "0", "xsd:unsignedInt"]

```

]

}

if “InternetGatewayDevice.DownloadDiagnostics.DSCP” old value is 0  
from cwmp soap information, after call this api, can’t send setPararmentValues soap information.

how can I use this api to send setPararmentValues soap when the value is same?

---

<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:** [January 15, 2021, 11:12am UTC](https://forum.genieacs.com/t/how-ot-use-post-api-to-set-same-value/1359/2 "2021-01-15T11:12:34Z")

</div>

you can’t, you have to change it first to another value … would be nice if we could force the setParameterValues even if the value is the same for those cases when it’s mandatory (this is a recurring problem, see for example [setParameterValue that already exists](https://forum.genieacs.com/t/setparametervalue-set-value-that-already-exists/927/4) or [Send all parameters on the same setParameterValue](https://forum.genieacs.com/t/send-all-parameters-on-the-same-setparametersvalue-rpc/156/3)).

---

<div class="post-metadata">

**Author:** ![zzz](https://avatars.discourse-cdn.com/v4/letter/z/cc9497/32.png) [@zzz](https://forum.genieacs.com/u/zzz)\
**Post date:** [January 18, 2021, 7:39am UTC](https://forum.genieacs.com/t/how-ot-use-post-api-to-set-same-value/1359/3 "2021-01-18T07:39:15Z")

</div>

@lavira @zaidka @akcoder  
I change the code,the follow picture

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/1X/9018bec701478f748bfc2f8004227117760f989a.png)  
And it work.I can setParameter even if the value is same. But I don’t know what bad thind will happen.

---

<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 18, 2021, 6:55pm UTC](https://forum.genieacs.com/t/how-ot-use-post-api-to-set-same-value/1359/4 "2021-01-18T18:55:29Z")

</div>

There will be a higher workload on the ACS and CPE because you are removing a chunk of the code that does a lot of work to reduce the workload.

If the issue is that the CPE needs to have that value reset to some specific value, then thats an implementation issue with the ACS. If the issue is that the CPE has changed that value under the covers, then the _correct_ way of addressing that is to refresh, then set that value. That is easily accomplished by doing a getParameterValues.
