Web Service Method - Change Ticket SLA

I am attempting to create a web service method that will let us change an SLA within a workflow. I found the API documentation on the subject and believe I have the method configured correctly. I have configured several other methods successfully but when I attempt to configure the SLA change method, I continuously get a "server not found" error. Anyone else have success with this type of method? My method is copied below in case anyone notices any errors.

PUT https://utk.teamdynamix.com/TDWebApi/api/{appId}/tickets/{id}/sla content-type: application/json [
{“NewSlaID”:”2117”}
]
Tags API web-service-step
Asked by Jordan Van Pelt on Thu 9/1/22 10:21 AM
Sign In to leave feedback or contribute an answer

Answer (1)

This answer has been marked as the accepted answer
Mark Sayers Thu 9/1/22 1:45 PM

Hello Jordan,

I don't believe you need to encapsulate your call's body in brackets for an array [ and ].

It should just be the {“NewSlaID”:”2117”} part.

No feedback
Thanks, Mark. I also noticed I had a slight typo in my URL. Correcting both seemed to do the trick. The below call ended up working for me.

PUT https://utk.teamdynamix.com/TDWebApi/api/2987/tickets/19092004/sla content-type: application/json {
"NewSlaID":"2117"
}
- Jordan Van Pelt Tue 9/6/22 12:55 PM
We have been using this method which works great, but have found that this resets the SLA time from the running of the API command. Is there a toggle or switch that can leave the original ticket creation time in place? - Warren Glore Fri 9/6/24 3:48 PM
Hi Warren, see https://yourdomain/TDWebApi/Home/type/TeamDynamix.Api.Tickets.SlaAssignmentOptions

There is a StartBasis property you can set. 0 is the current date/time and 1 is the ticket's creation date/time.
- Mark Sayers Fri 9/6/24 4:08 PM
Mark, Thanks for the information. After several failed attempts I finally tried the following and it works great: {"NewSlaID":"2125","StartBasis":"1"}. I could not find any documentation that told me how to use the property, only that it exists. - Warren Glore Fri 9/6/24 6:17 PM