---
schema_version: "1"
id: 84bb2fd226b33e07a5c70f3be1797af817d23fdf474d646664696ba8904c7790
title: ConnectApi.EditCapability
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_edit_capability.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_edit_capability.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 78274a4a354fc09bb8721434c007db3fbaf1097f80adfa69cb0a576b0711be1b
description: If a feed element or comment has this capability, users who have permission can edit it.
---
# ConnectApi.EditCapability

If a feed element or comment has this capability, users who have permission can edit it.

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| isEditRestricted | Boolean | Specifies whether editing this feed element or comment is restricted. If true, the context user can’t edit this feed element or comment. If false, the context user may or may not have permission to edit this feed element or comment. To determine if the context user can edit a feed element or comment, use the [isFeedElementEditableByMe(communityId, feedElementId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ChatterFeeds_static_methods.htm#apex_ConnectAPI_ChatterFeeds_isFeedElementEditableByMe_1 "Discover whether the context user can edit a feed element.") or [isCommentEditableByMe(communityId, commentId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ChatterFeeds_static_methods.htm#apex_ConnectAPI_ChatterFeeds_isCommentEditableByMe_1 "Discover whether the context user can edit a comment.") method. | 34.0 |
| isEditable​ByMeUrl | String | The URL to check if the context user is able to edit this feed element or comment. | 34.0 |
| lastEditedBy | [ConnectApi.Actor](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_actor.htm#apex_connectapi_output_actor "Actor.") | Who last edited this feed element or comment. | 34.0 |
| lastEditedDate | Datetime | The most recent edit date of this feed element or comment. | 34.0 |
| latestRevision | Integer | The most recent revision of this feed element or comment. | 34.0 |
| relativeLast​EditedDate | String | Relative last edited date, for example, “2h ago.” | 34.0 |

#### See Also

- [ConnectApi.CommentCapabilities](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_comment_capabilities.htm "A set of capabilities on a comment.")
- [ConnectApi.FeedElementCapabilities](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_feed_element_capabilities.htm "A container for all capabilities that can be included with a feed element.")