• ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
HP Recommended

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!

1 ACCEPTED SOLUTION

Accepted Solutions
HP Recommended

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

View solution in original post

2 REPLIES 2
HP Recommended

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
HP Recommended

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

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.