Skip to main content

View Requested Items of a Service Request


Forum|alt.badge.img+7

I have problem with this API, I receive an empty object:  

/api/v2/tickets/[id]/requested_items

 

Any idea, thanks!

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

3 replies

Forum|alt.badge.img+7
  • Author
  • Skilled Expert
  • 27 replies
  • January 23, 2024

I have noticed that for Service request, the placeholder for ticket.id returns me something like “SR-5” rather than the ID of the ticket which is for example “5”.

….reshservice.com/api/v2/tickets/{{ticket.id}}/requested_items

So it seems it gets converted to: 

....reshservice.com/api/v2/tickets/SR-5/requested_items

Any idea?


Daniel Söderlund
Skilled Expert
Forum|alt.badge.img+14
manovades wrote:

I have noticed that for Service request, the placeholder for ticket.id returns me something like “SR-5” rather than the ID of the ticket which is for example “5”.

….reshservice.com/api/v2/tickets/{{ticket.id}}/requested_items

So it seems it gets converted to: 

....reshservice.com/api/v2/tickets/SR-5/requested_items

Any idea?

You need to use the placeholder for ticket ID. if you check in the list of placeholders you can see it a bit down the list. 


Forum|alt.badge.img+7
  • Author
  • Skilled Expert
  • 27 replies
  • January 24, 2024

@Daniel Söderlund “{ticket.id_numeric}}” worked :)


Reply