How to pass parameters from custom function in to Request body of API

How to pass parameters from custom function in to Request body of API

I could get account name using a custom function but i want this value to be assigned in the request body of API

Can any one please help me?


Thanks 
Prudhvi