-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Poly Phones
- Desk and IP Conference Phones
- REST API - /mgmt/config/set

Create an account on the HP Community to personalize your profile and ask a question

02-19-2020 01:34 PM
I've read the FAQs on the API, and what I have tried to execute from there has generally worked. I am now struggling with the ../api/v1/mgmt/config/set call. Info below, all help/comments welcome.
Model: VVX 300
FirmwareRelease: 5.8.2.4732
(above comes from a successful API call via ../api/v1/mgmt/device/info)
Problem I am having is setting configuration parameters via CuRL:
curl -k -X POST -H "Content-Type: application/json" -d '{"data": ["device.net.vlanId":"49","device.net.vlanId.set":"1","device.set":"1"],}' https://<redactedusername:redactedpassword@redactedipaddress/api/v1/mgmt/config/set
Result is:
{"Status": "4000"}
I figured out that the single and double quotes make a difference and that the entire data payload (-d option) needs to be enclosed in single quotes, whereas the keys and values contained in the JSON need to be contained in double-quotes. I've also tried with and without the trailing comma after the square bracket, receiving the same result. Beyond that, I can't seem to set/change an configuration parameters, though I can retrieve them.
Thanks in advance!
Solved! Go to Solution.
Accepted Solutions
02-20-2020 02:25 AM
Hello @jcs001 ,
Welcome to the Poly Community.
We had a very similar request >here< using Power Shell instead.
I have now added two examples => here <= on how to do this using either Power Shell or CURL.
Please ensure to provide some feedback if this reply has helped you so other users can profit from your experience.
Best Regards
Steffen Baier
Notice: I am an HP Poly employee but all replies within the community are done as a volunteer outside of my day role. This community forum is not an official HP Poly support resource, thus responses from HP Poly employees, partners, and customers alike are best-effort in attempts to share learned knowledge.
If you need immediate and/or official assistance for former Poly\Plantronics\Polycom please open a service ticket through your support channels
For HP products please check HP Support.
Please also ensure you always check the General VoIP , Video Endpoint , UC Platform (Microsoft) , PSTN
02-20-2020 02:25 AM
Hello @jcs001 ,
Welcome to the Poly Community.
We had a very similar request >here< using Power Shell instead.
I have now added two examples => here <= on how to do this using either Power Shell or CURL.
Please ensure to provide some feedback if this reply has helped you so other users can profit from your experience.
Best Regards
Steffen Baier
Notice: I am an HP Poly employee but all replies within the community are done as a volunteer outside of my day role. This community forum is not an official HP Poly support resource, thus responses from HP Poly employees, partners, and customers alike are best-effort in attempts to share learned knowledge.
If you need immediate and/or official assistance for former Poly\Plantronics\Polycom please open a service ticket through your support channels
For HP products please check HP Support.
Please also ensure you always check the General VoIP , Video Endpoint , UC Platform (Microsoft) , PSTN

02-20-2020 01:59 PM
For everyone's benefit - the basic problem was that I needed to use an escape sequence in my JSON data payload, and use curly-braces versus square brackets in my JSON data payload. Thanks Steffen for your help. I marked the solution as accepted and gave a kudos.
-jcs