Upload or Download of a Picture

Methods: cmdb.category.create, cmdb.category.read

Category: Pictures

Before uploading, you have to encode the file of the picture in BASE64. Also for downloading the picture has to be encoded in BASE64. For the sake of brevity, the strings encoded in BASE64 are replaced by wildcards in the examples.

Upload a File and Assign It to an Object

Methods: cmdb.object.create and cmdb.category.create

Categories: Files → File versions and Files

We want to upload the existing file test.txt to i-doit and assign it to a new server object. In i-doit files are objects, too. Before uploading the file its content have to be BASE64 encoded, see attribute file_content in the 3rd request. As you can see the server object gets the ID 1000 and the file object the ID 1001.

Document Model-specific Data of an Hardware Compoment

Method: cmdb.category.create

Category: Model

One specialty about this topic is that the attributes Manufacturer and Model are related to each other. In an API request you can set their names as strings because both are dialog+ fields. If one of these values does not exist it will be created automatically.