# Types.DataroomChild

One child (file or folder) to attach to a dataroom.

> Kind: Apex type · Updated: 2026-07-01

Describes a single child resource — a file or folder — to add to a dataroom. Instances are collected into the children list of Types.AddDataroomChildrenInput, which is consumed by Client.addToDataroom().

## Fields

### Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | String | required | The resource Id of each file for which content version needs to be created. |
| type | String | required | One of fileRequest, file, or folder. |
| library | String | required | The related files library such as cloudfiles, google, sharepoint etc. |
| driveId | String | required | Drive Id in external storage. Only applicable for SharePoint & Google Drive. You can get this value from Content Library. |

## Constructors

```apex
global DataroomChild(
  String id,
  String type,
  String library,
  String driveId
)
```
