Skip to main content

I need to update a service request that was created using the API. I have a properties section in my dashboard which expects for the service request to be resolved, along with some other fields like group, source, close code, etc. 

I can’t find any API endpoint for updating. Either updating the service request or creating it with these fields already filled out.

I have an AI agent that is already performing the tasks so a true service request isn’t required to be handled by anyone else. The AI agent creates this service request after finishing the task and then it should resolve it.

I am trying the api/v2/tickets/1, endpoint but I keep running into “message” field is required but when I pass it, it says invalid field


Hello @mgkubiya, can you share the error code you are getting when you make the API call. Usually if a field is shown as required, it is because it is configured as a required field in “Form Fields” from the admin console. I would check the requirements of the service request fields for that service item and make sure you are meeting those requirements.

Also to update a service request, you have to figure out if you want to update a ticket (both incident and service request) field which can be done as a PUT request to the api/v2/tickets/ticket_id endpoint or if you are wanting to update information about the requested items, which is a PUT request to a different endpoint api/v2/tickets/ticket_id/requested_items/requested_item_ID. Here is the documentation to help.

https://api.freshservice.com/v2/#update_req_items_of_sr


I am trying the api/v2/tickets/1, endpoint but I keep running into “message” field is required but when I pass it, it says invalid field

Add ?bypass_mandatory=true  to the end of the URL. 

Works only when you update a ticket/request with PUT