Hi Folks,
I am having requirement to update a custom field of Service Request in freshservice portal. I tried this rest api through postman(https://{domain.freshservice.com}/api/v2/tickets/{ticketId}) i am getting 200 status.
The reason you get this error because $request.put is not a valid HTTP method in terms of Request API, Could you please try the ($request.post) method and let us know if you still get the error?
Thanks for contributing your answer! And I am doing well,hope the same with you.
As you mentioned i tried with post also($request.post) through code but still i am facing issue “Method not allowed”. But in postman i am able to update custom fields successfully using “put” method.
Could you check if the endpoint is correct using a console.log() or in the networks tab of the browser, there could be a possibility that ${ticketId} is maybe null/empty and it’s trying to post to api/v2/tickets/ which only supports GET
if the endpoint is correct, please send us the sample payload and the endpoint. So, I can try from my end
Apologies for overlooking this thread
I hope this issue is resolved, if the issue isn’t resolved, could you please share the code with is to investigate further?
You could also share your solution for this issue if it’s resolved for the benefit of the forum!
As far as I know, it is not possible to update a service request ticket.
I raised a ticket several months ago about it, the status is still waiting on feature request.