---
title: "InsertTask"
slug: "api/basket/types/inserttask"
sidebar:
  order: 403
---

<a id="ref-2779013624ab"></a>
<a id="ref-6425d11b997f"></a>

## Synopsis

```text
abstract struct InsertTask
{
string taskId; // attribute
string? parentTaskId; // attribute
BItemId? parentItemId; // attribute
}
```

Base type for [batchInsert](/pCon/configuratorOnline/specs/api/basket/operations/batchinsert#ref-3d6295023d7a) tasks. `taskId` must be a valid Unicode identifier unique among the tasks of this invocation. `parentTaskId`, if present and non-empty, must be a valid Unicode identifier matching an [`InsertFolderTask`](/pCon/configuratorOnline/specs/api/basket/types/insertfoldertask) preceding this task. `parentItemId`, if present, non-empty and not the Nil UUID, must identify a basket folder existing when the operation was invoked. If `parentTaskId` is missing or empty and `parentItemId` is missing, empty or the Nil UUID, the top folder is used. See [batchInsert](/pCon/configuratorOnline/specs/api/basket/operations/batchinsert#ref-3d6295023d7a) for task execution and failure handling.
