Function: datapoint.BulkModify

Performs a bulk of changes at once. The changes are applied transactionally, so if any of the individual changes fails, none of the changes are applied.

Syntax

{
	"method": "datapoint.BulkModify",
	"params": {
		"create": "...",
		"update": "...",
		"set": "...",
		"delete": "...",
		"deleteDependents": "...",
	},
	"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}
AdvFuture<bool> BulkModify( std::optional<std::vector<Datapoint>> create = std::nullopt
	 std::optional<std::vector<Datapoint>> update = std::nullopt,
	 std::optional<std::vector<ObjectAspect>> set = std::nullopt,
	 std::optional<std::vector<AdvGuid>> _delete = std::nullopt,
	 std::optional<bool> deleteDependents = std::nullopt );
public Task<bool> BulkModifyAsync(IList<Datapoint>? create = null,
		IList<Datapoint>? update = null,
		IList<ObjectAspect>? set = null,
		IList<Guid>? delete = null,
		bool? deleteDependents = null,
		CancellationToken ct = default);
bulkModify(toCreate?: Datapoint[] | undefined, toUpdate?: Datapoint[] | undefined, toSet?: ObjectAspect[] | undefined, toDelete?: string[] | undefined, toDeleteDependents?: boolean | undefined): Promise<boolean>;

Parameters

create : Datapoint[] optional

List of Datapoint Objects to create.

update : Datapoint[] optional

List of Datapoint Objects to update.

set : ObjectAspect[] optional

List of Datapoint Object properties to set.

delete : guid[] optional

List of Datapoint ids to delete.

deleteDependents : bool optional

If set to true descendant of the Object identified by ‘id’ will also be deleted. If the parameter is not set, the default value is false.

Result : bool

True if successful.

Remarks

This method requires API write access.