Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
blaise
Partner - Specialist
Partner - Specialist

NPrinting API - POST/PUT with request body not working

has anyone succedd with a POST/PUT towards NPrinting API with a request body?

I can start tasks and do other stuff that doesn't require a request body, but f.ex. PUT /users/{id}/groups does not work.

I have all other stuff working (im quite sure at least) like Origin, X-HTTP-Method-Override, Cookie but I receive a 400 - "Malformed parameters in body" when i try the following in the request body field in QvRestConnector;

{

   "groupIds": "guid-of-a-group"

}

Have tried both directly in Rest Connector setup, with a "with connection" including a replace(vBodyString,'"',chr(34) & chr(34)) and postman.

Am i doing something wrong or is the API just not working as expected?

Running Feb-18 release btw.

Br Johan

11 Replies
bramkn
Partner - Specialist
Partner - Specialist

Odd that this is different than the documentation. Good to know it is.

poojask123
Partner - Creator
Partner - Creator

I am trying to modify the group name of a particular user using the NP API's. I am using the put user/<id>/groups command to do so.

Data retrieved for Get user/<id>/groups is in the form of an array and m not sure how manipulate this.

But my code is failing in preparing the body request for API. Can you please help ?