# Types.CreateLinkInput

Input describing a CloudFiles link to create for a file, folder, or dataroom.

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

Represents input for creating a CloudFiles link. Passed to Client.createLinks(), with one Types.CreateLinkInput per link to create.

## Fields

### Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| resourceId | String | required | Id of the file/folder in external storage, for which we're creating the attachment. |
| resourceType | String | required | One of file, folder or dataroom. |
| parentId | String | required | Salesforce Id of the record for which we're creating the attachment. |
| name | String | required | Name of the link. |
| driveId | String | required | Only applicable for SharePoint or Google Drive libraries. Supply null for other libraries. You can get this value from Content Library. |

## Constructors

```apex
CreateLinkInput(
  String resourceId,
  String resourceType,
  String parentId,
  String name,
  String driveId
)
```
