Qlik Community

Ask a Question

Qlik Sense Advanced Authoring

Discussion board where members can learn more about Qlik Sense Advanced Authoring.

Announcements
Do More with Qlik - for Beginners and Beyond, Topic: Qlik Replicate on January 21, 2PM EST. REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor

"Malformed parameters in body" Error while running Import task via API

Hello Community,

I want to add filters to a user in Nprinting via Rest API(In Qliksense)

Below is the format which i am using. On executing i am facing this error.

"

 HTTP protocol error 400 (Bad Request):

{"error":{"code":400,"message":"Malformed parameters in body"}}

"

------------------------------------------------------------------------------------------------------------

vFilterbody:

{

   "guid": "S(vFilterid)"

}

replace(vBodyString,'"',chr(34) & chr(34)) and postman.

SQL SELECT

"__KEY_data"

FROM JSON (wrap off) "data" PK "__KEY_data"

WITH CONNECTION( URL "XXXXXXXXXXXX", $(vFilterbody)

HTTPHEADER "Origin" "XXXXXXXXXXXXXX",

HTTPHEADER "Content-Type" "application/json",

HTTPHEADER "X-HTTP-Method-Override" "PUT",

HTTPHEADER "cookie" "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; ").

I went through other solution provided from community  and tried too, still facing same issue.

Thanks,

Abhilash

Labels (1)
1 Reply
Contributor
Contributor

vFilterbody:

{

   "guid": "S(vFilterid)"

}

replace($(vFilterbody),'"',chr(34) & chr(34))

SQL SELECT

"__KEY_data"

FROM JSON (wrap off) "data" PK "__KEY_data"

WITH CONNECTION( URL "XXXXXXXXXXXX", $(vFilterbody)

HTTPHEADER "Origin" "XXXXXXXXXXXXXX",

HTTPHEADER "Content-Type" "application/json",

HTTPHEADER "X-HTTP-Method-Override" "PUT",

HTTPHEADER "cookie" "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; ").