• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Custom API Data being modified

I'm trying to set up a custom API to perform a PUT request but the data I've entered in is being changed. The data contains URL information and all the slashes '/' are getting an additional '\' slash added before it and it's breaking the proper formatting for the receiving app. I need to stop this from happening. Here are images showing how I've entered the data and how it's being changed when I save, leave, and come back.
 

Attachments

  • chrome_XJs8GfuvTN.png
    chrome_XJs8GfuvTN.png
    40.4 KB · Views: 125
  • chrome_17a8e39CNH.png
    chrome_17a8e39CNH.png
    40.4 KB · Views: 121
P

Pabblymember11

Guest
Hey @andrewstrealtor

I'm trying to set up a custom API to perform a PUT request but the data I've entered in is being changed. The data contains URL information and all the slashes '/' are getting an additional '\' slash added before it and it's breaking the proper formatting for the receiving app. I need to stop this from happening. Here are images showing how I've entered the data and how it's being changed when I save, leave, and come back.

Regarding your concern, you can ignore the auto rendering of the slashes in your API action step while passing the URL. It will work the same as you set it for the first time even if you save it again, it will be send to the destination application as it should be.
 
Last edited by a moderator:
I can not ignore the slashes and I need a way to use the API with a POST request that does not alter the data. I've tried using both JSON and TEXT for the Payload Type and both are adding backslashes. The recipient trying to set up to receive the data doesn't want all the backslashes all over the place. How do I send data that looks exactly how it looks to me on the API screen so it doesn't add slashes?
 
P

PabblyMember3

Guest
@andrewstrealtor Since, we used the json_encode function at the backend to convert the given request in proper JSON it adds a the backslashes. Those backslashes are escape characters. They are escaping the special characters inside of the string associated with JSON response.

That do not affect the functionality of the API module but, it will be just look like this and it is acceptable to all applications. Please contact the recipient application regarding this.
 
Top