app-service_management

On this page:

saveInstances

Summary

Save Instances

Description

Create a new service instance or update an existing service instance.

Route

POST /service_management/saveInstances

Roles

admin engineering support apiwrite

Parameters

DetailsExampleSchema
Name Type Required Description
instance object yes An object with a single field. The field's key is the service model's XPATH. The field's value is an array of objects. Each element of the array is an object representing the properties of a service model instance. Can be obtained with API<a href='#getInstance'>ServiceManager.getInstance().
options object yes Allows for passing options to an IAP adapter. sync: set to false; use commit-queue in async mode. If true, do not use commit-queue. action: It's of 5 types: merge, replace, create, delete, and remove (if an instance exists, it defaults to replace; if not, then it defaults to merge).

Return

DetailsExampleSchema
Name Type Description
result array Result of saving the service instances.