Methods > glpi.getKnowBaseItem

Version Comments
1.3.0 Method added

Retrieve a Knowbase or FAQ item available for the current user (when authenticated) or in the public FAQ (if configured).

This call increase the view counter.

See glpi.getDocument to retrieve attached documents.

input a hastable

  • help option to get usage information
  • id : of the item

return a hashtable

  • id
  • name : question
  • answer : full answer in HTML
  • answer_text : full answer in TEXT
  • view : counter (before this call)
  • others fields from glpi_knowbaseitems

Call example

$ php testxmlrpc.php --method=glpi.getKnowBaseItem --id=17      
+ Calling 'glpi.getKnowBaseItem' on http://localhost//glpi083/plugins/webservices/xmlrpc.php
+ Response: Array
(
    [id] => 17
    [knowbaseitemcategories_id] => 0
    [name] => FAQ publique 2
    [answer] => <p>Encore un test</p>
    [is_faq] => 1
    [users_id] => 6
    [view] => 24
    [date] => 2012-01-10 15:16:35
    [date_mod] => 2012-01-10 15:16:35
    [answer_text] => Encore un test
    [documents] => Array
        (
            [0] => Array
                (
                    [id] => 60
                    [name] => Document Base de connaissances - FAQ publique 2 (17)
                    [filename] => dl385g7haut.pdf
                    [mime] => application/pdf
                )
        )
)