Cumulocity API Services / com.softwareag.jc.cumulocity.services.api / ManagedObjectService / add

add

fun add(obj: ManagedObject, responder: RequestResponder<ManagedObject>): Unit

Adds the managed object to your cumulocity tenant. The internal id generated by Cumulocity will added to the managed object reference, which will be referenced in the callback function.

Note, not all elements of your managed object can be posted, refer to the REST API Guide for more details

Parameters

obj - a ManagedObject created locally for which the id attribute will be null

responder - callback function to which the RequestResponder<ManagedObject> instance will be communicated to. The ManagedObject is the same managed object as the obj param with the id attribute updated to reflect the new instance in Cumulocity.