Hi all, Hope someone can help.
I’m using the http request activity
I’m trying to Update a ticket by applying the changes a macro would make to a ticket, I’m using successfully this API call:
https://developer.zendesk.com/rest_api/docs/support/macros#show-changes-to-ticket
to show the changes a macro would make to a ticket:
{
“result”: {
“ticket”: {
“assignee_id”: “360063351XX9”,
“group_id”: 36000010XX58,
“status”: “open”,
“fields”: null,
“collaborator_ids”: ,
“follower_ids”: ,
“comment”: {
“body”: “
This ticket has been escalated from Robot
”,“html_body”: “
This ticket has been escalated from Robot
”,“public”: “false”
}
}
}
}
It states on ZenDesk API page:
You can use the response data in a subsequent API call to the Tickets endpoint to update the ticket.
I’m then using this API call: Tickets | Zendesk Developer Docs (/api/v2/tickets/{id}.json)
to Update the ticket I’m passing the end point “https://Subdomain.zendesk.com/api/v2/tickets/1336454.json”
Method: PUT
with a valid Authorization header
and my result json as above,
any ideas where I am going wrong?
Error Message I’m getting:
{
“error”: {
“title”: “Invalid attribute”,
“message”: “You passed an invalid value for the ticket attribute. Invalid parameter: ticket must be a hash”
}
}