Skip to main content

Hi All,
I have a Zap that ends with an API Request to FreshDesk using Zapiers “Beta” step (I know, Beta means it might not work property) and I am getting a 400 error indicating that I have not included and Query parameters. The problem is that I am actually including them. I am wondering if I am just making a simple mistake that I am not seeing (as opposed to a server side issue that is bigger). Any help would be greatly appreciated!

Step with FreshDesk API Call

Here I have the url correct per API Docs and have the Query Parameters as I believe they should be based on the field names.

 

The “Data In” looks ok to me.

“Data Out” Error
Unfortunately I get the following errors when it runs.

 

 

Hi ​@Bret MC Helenius 

What is the link to the Freshdesk API endpoint documentation you used to configure the API request in the Zap step?


Hi ​@Troy Tessalone,

Thanks for checking in! I am using v2.0

https://developers.freshdesk.com/api/?_ga=2.223262879.541409777.1550189352-1628441631.1550189352#introduction

I have tried a number of different Query Parameter combinations in hopes of hitting one other than the obvious with no luck. That is why I was guessing either I am missing something obvious or it is greater than my knowledge.

Appreciate the time.

Cheers,
Bret 


@Bret MC Helenius 

Here’s the Freshdesk API endpoint documentation for updating a ticket: https://developers.freshdesk.com/api/?#update_ticket

 

Make sure to add a Header

  • Content-Type: application/json

 

You should be using the Body section instead of the Query String Parameters section.

{
"custom_fields": {
"cf_order_number_1": "00000",
"cf_order_number_2": "11111"
}
}

 

###

 


Thanks ​@Troy Tessalone 

A number of attempts ago I tried just using the body with various versions but will go for it again.  These two attempts came up fruitless.

Set 1 Data In

Set 1 Data out

Set 2 Data In

Set 2 Data out

 


@Bret MC Helenius 

Remove the second comma after the last double quote (screenshot)

 


@Troy Tessalone You a prince among men! I should have seen that extra comma since the set was done. Many thanks for sure. Take care!


Troy is indeed, ​@Bret MC Helenius! 🤴🏻✨

So pleased you were able to get this sorted with Troy’s suggestion. Please do reach out to the Community again in future if you need help with anything else. In the meantime, happy Zapping! ⚡️ 


Reply