Greetings, I have an external Job Card module for use when Technicians go on-site to deliver service. The completed, and signed, Job Cards are stored as PDF documents. These documents are then added to the iTop database and linked to the corresponding CI in the CMDB using direct writes to the iTop database. I am uncomfortable with this practice So, now that I have a working app to carry on with, I would like to find out if there is a better way to update and link the Documents? An API call perhaps? I am not the developer of my software, I have a PHP dev who does the coding. Many thanks, Kevin Joubert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
if you want you can look into your iTop directory webservices there is a php script that give examples on how to call the REST API itoprest.examples.php
One of this example explain how to manage attachment. You can reuse it for File Document
👍
2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Greetings, I have an external Job Card module for use when Technicians go on-site to deliver service. The completed, and signed, Job Cards are stored as PDF documents. These documents are then added to the iTop database and linked to the corresponding CI in the CMDB using direct writes to the iTop database. I am uncomfortable with this practice So, now that I have a working app to carry on with, I would like to find out if there is a better way to update and link the Documents? An API call perhaps? I am not the developer of my software, I have a PHP dev who does the coding. Many thanks, Kevin Joubert
Hi,
Yeah, it seem to be possible, method is described in REST API documentation
https://www.itophub.io/wiki/page?id=latest:advancedtopics:rest_json#operationcore_create
Hi
if you want you can look into your iTop directory webservices there is a php script that give examples on how to call the REST API itoprest.examples.php
One of this example explain how to manage attachment. You can reuse it for File Document
Thank you. I'll check those out.