Wednesday, May 10, 2017

New API Features for Knowledge Management

APIThe developers among you will be pleased to hear that the capabilities of ITRP's REST API have been extended with a few more Knowledge Management features.

First there's the knowledge_article field, which has been added for requests. This makes it possible to look up the knowledge article that is linked to each request, like so:

$ curl -u "api-token:x" -X GET -H "X-ITRP-Account: wdc" ",subject,knowledge_article"

In addition, you can now use the REST API to retrieve the requests to which a specific knowledge article has been applied. Here's an example:

$ curl -u "api-token:x" -X GET -H "X-ITRP-Account: wdc" ""

And finally, we've made it possible to query how many times each knowledge article has been applied to a request. For that the times_applied field has been added. A CURL example looks like this:

$ curl -u "api-token:x" -X GET -H "X-ITRP-Account: wdc" ",subject,times_applied"

More information can be found in the ITRP Developer documentation for requests, knowledge articles and requests of a knowledge article.