Skip to main content

I’m trying to use a PUT request to update the requester of a ticket, however, I’m getting error code 400 when I test it.

According to this error documentation, my formatting is incorrect.

Does anyone see what I’m doing wrong? Any help would be greatly appreciated, thanks!

 

If anyone is curious, I was able to track down a fix for this with the help of Freshservice support.

In order to get more error details, I recreated the PUT request using the web request node instead of an action node with “trigger webhook” selected.

The error I was getting mentioned that a custom field that I had set to be required for both agents and requesters when submitting the form could not be NULL. I went ahead and toggled off the requirement for agents and now the PUT request is working without issue.


 

If anyone is curious, I was able to track down a fix for this with the help of Freshservice support.

In order to get more error details, I recreated the PUT request using the web request node instead of an action node with “trigger webhook” selected.

The error I was getting mentioned that a custom field that I had set to be required for both agents and requesters when submitting the form could not be NULL. I went ahead and toggled off the requirement for agents and now the PUT request is working without issue.

Thanks for sharing. 


You may also need to add 

 

Query Parameters Handle
bypass_mandatory To bypass mandatory fields check while updating the ticket except for requester_id, source. Any business rules trying to mandate certain fields will also be bypassed. All fields configured as mandatory upon closing or resolving the ticket will be skipped while updating the ticket. This can only be passed by an admin.
Example: api/v2/ticket/{ticket_id}?bypass_mandatory=true