From time to time a customer asks for some customization that involves updating a service request.
To me it was clear that it was not possible, since that the first time I was asked to do it, I raised a ticket to Freshservice support and they answered that it was not possible. A feature request was raised, and I’m still waiting on it.
I even answered a topic here saying it: API to update a service request in Freshservice - #9 by samuelpares - Ideas - Freshworks Developer Community. @yusrakhatri commented it as well here: Associating an Asset to a Service Request ticket using ticket update Api - #2 by yusrakhatri - Product - Freshworks Developer Community. So always that some customer asked about it, I said it was not possible.
Today I was asked again and I resolved to check for updates on this and I found out here on forum that @sarfaraz_Mohammed was able to do it using v1 endpoint: Is there any API available for updating Service Request status - Ideas - Freshworks Developer Community
So I tested it now, and it worked for some default fields and custom fields.
For custom fields, you need the name for the custom fields from the v1 endpoint.
Using v2 fields names, does not work.
So to get the custom field names from v1:
curl -u user@yourcompany.com:test -H “Content-Type: application/json” -X GET https://domain.freshservice.com/ticket_fields.json
But for my current use case, there’s still an issue: I can’t update the description field:
Body:
{
"helpdesk_ticket": {
"description": "Test"
}
}
Response:
{
"errors": [
"Error while updating ticket properties"
]
}
So the question left is: why can’t I update the description?
It was even possible to update the subject, but not the description