New API Features for Knowledge Management
The developers among you will be pleased to hear that the capabilities of 4me’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-4me-Account: wdc” “https://api.4me.com/v1/requests fields=id,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-4me-Account: wdc” “https://api.4me.com/v1/knowledge_articles/12345/requests”
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-4me-Account: wdc” “https://api.4me.com/v1/knowledge_articles?fields=id,subject,times_applied”
More information can be found in the 4me Developer documentation for requests, knowledge articles and requests of a knowledge article.