Skip to main content
Question

Updating a ticket's requester using a webhook

  • July 27, 2024
  • 3 replies
  • 61 views

vschiaffino
Forum|alt.badge.img+3

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!

 

3 replies

vschiaffino
Forum|alt.badge.img+3

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.


eeha0120
Top Contributor ⭐
Forum|alt.badge.img+12
  • Top Contributor ⭐
  • July 28, 2024

 

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. 


Roxwell
Top Contributor ⭐
Forum|alt.badge.img+9
  • Top Contributor ⭐
  • July 29, 2024

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