---
schema_version: "1"
id: b81d8b4a0427b863eb8ac19678726d44c9185fea0a1154a0ec9f414fded3f6f7
title: ConnectApi.LinkAttachmentInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_linkAttach.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_linkAttach.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7321a0f5129a5ec526aa0032c8edc16805310ea7ffaceaa1ffad7ec3899e43cd
description: Add links to a feed item.
---
# ConnectApi.LinkAttachmentInput

Add links to a feed item.

![Important](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/images/icon_note_important.png)

#### Important

This class isn’t available in version 32.0 and later. In version 32.0 and later, use [ConnectApi.LinkCapabilityInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_link_capability.htm "Create or update a link on a feed element.").

Subclass of [ConnectApi.FeedItemAttachmentInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_FeedItemAtt.htm "Used to attach a file to a feed item.").

| Property | Type | Description | Available Version |
| --- | --- | --- | --- |
| url | String | URL to be used for the link | 28.0–31.0 |
| urlName | String | Title of the link | 28.0–31.0 |