allegro/ralph — pull request #701 by frank-borkin (2013-11-11 05:39:14+00:00)
Title: CMDB API extensions

POST requests to CI - sending JSON object formatted the same way as obtainable via GET request will result in creating new CI (Configuration Item) in CMDB database. This call supports specifying multiple types, layers and owners - by default this will create relations between newly created CI object with needed CIType, CILayer and/or CIOwner objects identified by supplied “id” attribute. If “id” is not specified in JSON document extension will try to create and link needed new resource object using other details (“first_name”, “last_name” and “email” for CIOwner, “name” for CILayer) from JSON document.
POST request to CIRelation - sending JSON document with two fields - “parent” and “child” containing ids of two existing CI objects will result in creation of CI Relation between those CIs with correspondent parent-child roles.