ConnectApi.​ContentCapability​Input

Attach or update a file with a feed element. Use this class to attach a new file or update a file that has already been uploaded to Salesforce.

This class is a subclass of ConnectApi.​FeedElement​CapabilityInput Class.

Property Type Description Required or Optional Available Version
content​DocumentId String ID of the existing content. Required for existing content 32.0
description String Description of the file to be uploaded. Optional 32.0
sharingOption ConnectApi.​FileSharing​Option Sharing option of the file. Values are:
  • Allowed—Resharing of the file is allowed.
  • Restricted—Resharing of the file is restricted.
Optional 35.0
title String Title of the file. This value is used as the file name for new content. For example, if the title is My Title, and the file is a .txt file, the file name is My Title.txt. Required for new content 32.0
Previous
Next