I am trying to update ticket statuses through the API. The rest api documentation seems to have or used to have a section dedicated to this subject but it is no longer linked to anything in the docs.
Everytime I try to update the workflow status nothing changes. I can see related “on update” rules fire but never see any change in the ticket. I also tried to update the subject to see if that was my issue and though I can see the subject update in the timeline log it never actually updates.
Is this a limitation of the demo environment or is it not possible to update ticket statuses?
Typically API questions should be routed through our Support Team as they are the most equipped team to help you through this. I can tag a few users to see if they have any ideas but your best resource is going to be reaching out to our Support Team.
Good Morning
I hope you are doing well!
If you are looking to update a ticket status via the API then you would want to make a POST call similar to the API URL provided below. For your API call you will want to replace all the bracketed words with the exact information for your district. With that said though, if you may have any questions or concerns, please let me know, and I hope you have a great day!
https://{SITE}.incidentiq.com/api/v1.0/tickets/{TICKETID}/status/{STATUSID}
Best Regards,
Drew
Thank you
url: https://demo.incidentiq.com/api/v1.0/tickets/ea3753c2-8e79-4c7d-9b6c-f2911a473ed9/status/c7932b63-7bf4-49f9-a2a3-ea739e7e0009
status ID correlates to the “In Repair (Vendor)” status.
fetch thats throwing:
await fetch(url, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${token}`,
},
}
reponds with 500, Internal Server Error
Have any idea why I might be seeing this when attempting the request?
The same headers work for the other requests.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.