• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

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: 99
  • chrome_17a8e39CNH.png
    chrome_17a8e39CNH.png
    40.4 KB · Views: 94
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