Function: location.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": "location.BulkModify",
"params": {
"create": "...",
"update": "...",
"set": "...",
"delete": "...",
"deleteDependents": "...",
},
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}AdvFuture<bool> BulkModify( std::optional<std::vector<Location>> create = std::nullopt
std::optional<std::vector<Location>> 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<Location>? create = null,
IList<Location>? update = null,
IList<ObjectAspect>? set = null,
IList<Guid>? delete = null,
bool? deleteDependents = null,
CancellationToken ct = default);bulkModify(toCreate?: Location[] | undefined, toUpdate?: Location[] | undefined, toSet?: ObjectAspect[] | undefined, toDelete?: string[] | undefined, toDeleteDependents?: boolean | undefined): Promise<boolean>;Parameters
create : Location[] optional
List of Location Objects to create.
update : Location[] optional
List of Location Objects to update.
set : ObjectAspect[] optional
List of Location Object properties to set.
delete : guid[] optional
List of Location 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.