My webhook to add internal comment is failing | Community
Skip to main content

My webhook to add internal comment is failing

  • June 8, 2023
  • 1 reply
  • 0 views

Hello,

I'm having trouble trying to fix my target to add an internal comment based on a trigger.

I've created the following target:

URL: https://SUBDOMAIN.zendesk.com/api/v2/tickets/{{ticket.id}}.json?ticket[comment][public]=false+
Method: PUT
Attribute name: ticket[comment][body] 
Basic Authentication: Entered my credentials here.
 
When I try to test the target i get the following error:
Error during transmission: HTTP client call failed
 
I'm getting the following failure when I look at Admin Center> Apps & Integration>Zendesk API>Target Failures. Can someone please tell me what I'm doing wrong here? :(
{
  "error": {
    "title": "Invalid attribute",
    "message": "You passed an invalid value for the ticket.comment.body attribute. Invalid parameter: ticket.comment.body must be a string from api/v2/tickets/update"
  }
}

1 reply

Hi Noelle,
 
Are you able to create this as a webhook rather than a URL target?  This would allow you to provide properly formed JSON in the body of the request to /api/v2/tickets/{{ticket.id}}.json.