Skip to main content
Question

Adding Service item to Existing SR via API


Forum|alt.badge.img+10

I need to add a service item to an existing ticket via API, but the instructions are a bit confusing and I am getting a generic error message.  

 

This is the API instructions:

 

 

When it said [id], it usually is referring to the ticket ID, but I would assume the second [id] in this is the service item ID.  That is what I used, but it isn’t working.  I get error 404 not Found.  

Any ideas?

Did this topic help you find an answer to your question?

2 replies

PoEHub
Community Debut
  • Community Debut
  • 4 replies
  • January 4, 2025

Adding a service item to an existing SR via API can sometimes be tricky, especially with unclear documentation. Ensure you’re using the correct API endpoint and payload structure as specified in the API guide. For detailed tutorials and troubleshooting tips, PoEHub (https://poehub.org/) has some excellent resources that might help you resolve this issue. Good luck!


Jing
Community Debut
Forum|alt.badge.img
  • Community Debut
  • 4 replies
  • January 14, 2025

Hi Shannon, 

I did type an earlier message but it hasn’t been approved for some reason.

I basically don’t believe this is currently possible without creating a child ticket. https://api.freshservice.com/v2/#create_child_service_request

What I’ve done instead is created a custom object record https://api.freshservice.com/v2/#create_custom_object_record, pasted a note into the ticket with the record https://api.freshservice.com/v2/#create_a_note and then requested approval https://api.freshservice.com/v2/#create_ticket_approval 

Hope this helps.

James


Reply