![](/s/cache/c3/1f/c31f10955c56c3f429bdd06bf2d2fad3.png)
0
Completed
How do I set the post request body of a web service on the design surface
I created a source against my local couchdb install (http://localhost:5984)
I then created a web service as seen in the image below
![Image 28](/s/attachments/9453/1/11/bc78a9510b25ef03c80744d4e5d6c376.png)
I then saved it and placed it on the design surface passing :
{"docs": [ {"_id": "my_doc", "number": 23}, {"_id": "_design/app", "updates": { "accumulate": "function (doc, req) { var inc_amount = parseInt(req.query.amount); doc.number = doc.number + inc_amount; return [doc, \"I incremented \" + doc._id + \" by \" + inc_amount]; }" } } ]}
into the postBody variable and executed it. I got an error message as seen in the image below.
![Image 29](/s/attachments/9453/1/11/9ac02c45a788b267b18a537130f9e81b.png)
How can I pass JSON data into the request and have it execute?
I then created a web service as seen in the image below
![Image 28](/s/attachments/9453/1/11/bc78a9510b25ef03c80744d4e5d6c376.png)
I then saved it and placed it on the design surface passing :
{"docs": [ {"_id": "my_doc", "number": 23}, {"_id": "_design/app", "updates": { "accumulate": "function (doc, req) { var inc_amount = parseInt(req.query.amount); doc.number = doc.number + inc_amount; return [doc, \"I incremented \" + doc._id + \" by \" + inc_amount]; }" } } ]}
into the postBody variable and executed it. I got an error message as seen in the image below.
![Image 29](/s/attachments/9453/1/11/9ac02c45a788b267b18a537130f9e81b.png)
How can I pass JSON data into the request and have it execute?
Answer
![](https://cdn.userecho.com/characters/97.png?1)
0
Answer
Under review
anonymous 11 years ago
We are looking into it
![](/s/cache/27/95/2795af86c481b1f80abd04ed5a51f727.png)
Hey Travis
How would a JSON tool that allowed mapping of variables into JSON format and outputting to a new variable work for you.
How would a JSON tool that allowed mapping of variables into JSON format and outputting to a new variable work for you.
Customer support service by UserEcho