Common Web Service Methods
*See https://api.teamdynamix.com/TDWebAPI for additional information
- Creating a ticket
- This is used if you need to create a ticket via a workflow step in the same application that you are in or in a different ticketing application.
- The Method info below to support this is:
- POST https://api.teamdynamix.com/TDWebAPI/api/####/tickets (#### reps TicketAppID
- Key: content-type | value: application/json
- Parameters: this can vary by ticket on what you want to default, but below are a few common fields you want to gather likely.
- RequestorUid – String – From Ticket – Requestor UID
- Title – String – From Ticket – Title
- Description – String – From Ticket – Description
- Body: this is an example of the body for a ticket create POST method. Note some fields have an ID stamped in there; it is going to append that value that represents the ID.
{
Title:"{{Title}}",
Classification:"32",
RequestorUid:"{{RequestorUid}}",
AccountID:"49765",
Description:"{{Description}}",
TypeID:"20080",
StatusID:"21150",
ServiceID:"19446",
FormID:"29004",
Attributes:[{ID:"62389",Value:"151804"}],
ResponsibleUid:"0fbd56fc-5de9-e611-80cd-000d3a13db68"
}
- Ensure you set your Web Service Auth Account
- Updating a ticket
- This is used to update the Feed of a ticket with pre-defined information as a comment, or often it can be used to send a notification out to an email address.
- The Method info below to support this is:
- POST https://api.teamdynamix.com/TDWebAPI/api/{{appID}}/tickets/{{id}}/feed
- Key: content-type | Value: application/json
- Parameters: this can vary but typically you want to at least have the two fields represented:
- appID – String – From Ticket – Application ID
- id – String – From Ticket – ID
- Body: (the information w/I the Comments section can be anything. If you want to send out this to add’l email addresses for instance, place a comma between the next email address. Be sure to “”” each address. The raw format looks like so – [“”,””]
{"Comments":"You have been assigned to fulfill the request for Student Support.","IsPrivate":true,"Notify":["xxxxxxxxxx@gmail.com"]}
- Set your Web Service Auth Account
- Patch a value on a ticket – see https://api.teamdynamix.com/TDWebApi/Home/AboutPatching
- In the example, we are going to PATCH a Responsible Group on a ticket. This PATCH method is used to update fields on a ticket. Again, like other web services this is done via a workflow step.
- The Method info below to support this is:
- PATCH https://api.teamdynamix.com/TDWebAPI/api/####/tickets/{{id}}?notifyNewResponsible=true
- Key: content-type | value: application/json
- Parameters:
- Id – String – From Ticket – ID
- Body: the body on this PATCH is simple, you can have several PATCH calls be done. Note the URL and what needs to be modified at the end of it.
[
{"op": "add", "path": "/ResponsibleGroupID", "value": #####},
]
- Set your Web Service Auth Account