---
schema_version: "1"
id: a24d491543cb08146759735e4d75d4b84debde5e4fe5bd86770d25189af4b62c
title: ConnectApi.PinCapabilityInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_pin_capability.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_pin_capability.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f8dcb9a66dbc150d825a064296d47b17bbef4528f8ae3738dc860fed4f038e34
description: Pin or unpin a feed element to a feed.
---
# ConnectApi.PinCapabilityInput

Pin or unpin a feed element to a feed.

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| entityId | String | ID of the entity to pin or unpin. In version 41.0 and later, entityId must be a feed item ID. In version 41.0–42.0, only one feed item can be pinned per feed. In version 43.0 and later, three feed items can be pinned per feed. | Required | 41.0 |
| isPinned | Boolean | Specifies whether to pin (true) or unpin (false) the entity. | Required | 41.0 |