# How can I change the request body and the response in huggingface api using python

**URL:** <https://discuss.huggingface.co/t/how-can-i-change-the-request-body-and-the-response-in-huggingface-api-using-python/10829>\
**Category:** Beginners\
**Created:** [October 16, 2021, 11:46am UTC](https://discuss.huggingface.co/t/how-can-i-change-the-request-body-and-the-response-in-huggingface-api-using-python/10829 "2021-10-16T11:46:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shreeshaaithal](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/shreeshaaithal/32/2893_2.png) [@shreeshaaithal](https://discuss.huggingface.co/u/shreeshaaithal)\
**Post date:** [October 16, 2021, 11:46am UTC](https://discuss.huggingface.co/t/how-can-i-change-the-request-body-and-the-response-in-huggingface-api-using-python/10829/1 "2021-10-16T11:46:01Z")

</div>

Hello everyone😁,  
I want to make a web server where I have a app that request body is like this  
`{ "appPackageName": "", "messengerPackageName": "", "query": { "sender": "John Smith", "message": "This is an example!", "isGroup": false, "groupParticipant": "", "ruleId": 42 }`

But the huggingface api request body is different so I want to change it using python and flask and the response body is also different so I just want to change it.

This is the response body I want  
`{ "replies": [ { "message": "Example reply 1" }`
