---
schema_version: "1"
id: 1dde97e7180da3a407989ab3be8d42deaacbb5a15829d04058f4eeb3aa1fc99a
title: ConnectApi.CanvasAttachmentInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_canvasAtt.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_canvasAtt.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9a6a34dd56fa00baa1b93973ff8291b92c32dc0056b02b749705ee1d854c6179
description: Used to attach a canvas app to a feed item.
---
# ConnectApi.CanvasAttachmentInput

Used to attach a canvas app 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.CanvasCapabilityInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_canvas_capability.htm "Create or update a canvas app associated with 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 |
| --- | --- | --- | --- |
| description | String | Optional. The description of the canvas app. | 29.0–31.0 |
| developerName | String | The developer name (API name) of the canvas app | 29.0–31.0 |
| height | String | Optional. The height of the canvas app in pixels. Default height is 200 pixels. | 29.0–31.0 |
| namespacePrefix | String | Optional. The namespace prefix of the Developer Edition organization in which the canvas app was created. | 29.0–31.0 |
| parameters | String | Optional. Parameters passed to the canvas app in JSON format. Example: {'isUpdated'='true'} | 29.0–31.0 |
| thumbnailUrl | String | Optional. A URL to a thumbnail image for the canvas app. Maximum dimensions are 120x120 pixels. | 29.0–31.0 |
| title | String | The title of the link used to call the canvas app. | 29.0–31.0 |