KronoDesk: REST Web Service
Resources
This table provides a list of all the resources exposed by this REST web service:
Resource | Methods | Description |
Product
|
GET
|
This resource lets you retrieve the list of products in the system
|
User
|
POST
,
GET
,
PUT
,
DELETE
|
This resource lets you create users and retrieve a user by its id, email address or login
|
Ticket
|
POST
,
PUT
,
GET
,
DELETE
|
This resource lets you create tickets, add notes, update notes and update tickets
|
Ticket Note
|
POST
,
PUT
,
DELETE
,
GET
|
This resource lets you add, delete, update and view the notes attached to help desk tickets.
|
Ticket Type
|
GET
|
This resource lets you retrieve the list of ticket types in the system
|
Ticket Status
|
GET
|
This resource lets you retrieve the list of ticket statuses in the system
|
Ticket Resolution
|
GET
|
This resource lets you retrieve the list of ticket resolutions in the system
|
Ticket Priority
|
GET
|
This resource lets you retrieve the list of ticket priorities in the system
|
Article
|
GET
|
This resource lets you retrieve the list of articles in the system
|
System
|
GET
|
This resource contains information on the overall product instance, including version and settings information
|
Document
|
POST
,
GET
|
This resource lets you upload file attachments and retrieve attachments
|
Accessing Services
To access these REST web services, you need to use the following base URL:
https://api.inflectra.com/KronoDesk/Services/v2_0/RestService.svc/
You can specify the format of data that will be returned (XML or JSON) by passing the following HTTP Headers:
-
Content-Type: application/xml - Sends data in XML format
-
accept: application/xml - Returns data in XML format
-
Content-Type: application/json - Sends data in JSON format
-
accept: application/json - Returns data in JSON format
To authenticate with the web service there are three methods:
-
Pass in the username and api-key using the standard HTTP basic authentication header:
Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXX
where XXXXXXXXXXXXXXXXXXXXXXXXXX is username:api-key base64 encoded
-
Pass in the username application API-Key using the username and api-key HTTP headers:
username: fredbloggs
api-key: {XXXXXXXXXXXXXXXX}
-
Append the username and application API-Key as an extra querystring parameter:
?username=fredbloggs&api-key={XXXXXXXXXXXXXXXX}
Finally if you need to call one of the GET methods from a web page in another domain
you need to use the special JSONP (JSON with Padding) syntax. This tells the web service to return
the data in the form of a JavaScript <script> tag so that it be can be called across web site domains safely.
To request the data in JSONP format, just add the following extra querystring parameter:
?callback=[name of callback function]
Product
User
Ticket
Ticket Note
Ticket Type
Ticket Status
Ticket Resolution
Ticket Priority
Article
System
Document