Folder Share by ID

For a specified share ID, extracts folder share information (GET), updates the access level on the share (PATCH), or deletes the share (DELETE).

The following user permissions are needed to access this resource.

PATCH/DELETE:

  • Manage access to the folder

GET:

  • View access to the folder

Syntax 

URI: /services/data/v41.0/folders/<folderId>/shares/<shareId>

Formats: JSON

HTTP methods

MethodDescription
GETReturns information for the specified folder share.
PATCHUpdates the access level on the specified folder share.
POSTDeletes the specified folder share.

Parameters

ParameterDescription
folderIdID of the folder containing the share.
shareIdPerform the operation for this unique folder share ID.

GET 

Response Body

PropertyTypeDescription
accessTypeConnectFolderAccessTypeEnumDefined by the type of folder access.
shareIdIDUnique identifier of the share.
shareTypeConnectFolderShareTypeEnumDefined by the type of folder share.
sharedWithIdIDUnique identifier of the share recipient.
sharedWithLabelStringLabel of the share recipient.
urlConnectUriURL of the share.

ConnectFolderAccessTypeEnum

TypeDescription
ViewView access to the folder.
EditEdit access to the folder.
ManageManage access to the folder.

ConnectFolderShareTypeEnum

TypeDescription
GroupUsers in a specified public group.
RoleUsers with a specified role.
RoleAndSubordinatesUsers with a specified role and users with a role subordinate to that role.
RoleAndSubordinatesInternalUsers with a specified role and users with a role subordinate to that role, except public portal users.
OrganizationAll internal users.
AllPrmUsersAll PRM Portal users.
UserThe specified individual user.
PartnerUserThe specified individual user of a partner portal.
AllCspUsersAll Customer Success Portal users.
CustomerPortalUserThe specified individual user of a customer portal.
PortalRoleUsers with a specified role in a portal.
PortalRoleAndSubordinatesPortalRoleAndSubordinates. Portal users with a specified role, and portal users with a role subordinate to that role.
ChannelProgramGroupPRM Portal users who are members of the specified channel programs and levels group.

Output Example

1{
2“shareId”		: “004xx000001Sy1GAAS”
3“accessType”		: “manage”,
4“shareType”		: “user”
5“sharedWithId”	: “005xx000001Sy1GAAS”
6“sharedWithLabel”	: “User1”
7}

PATCH 

Request Body

Query Param NameGroupAvailable VersionValuesDescription
folderObject41.0FolderShareInputRepresentationFolder share input representation.

FolderShareInputRepresentation

ParameterTypeAvailable VersionDescription
shareWithIdID41.0ID of the entity that the folder can be shared with.
accessTypeConnectFolderAccessTypeEnum41.0The access type for the recipient entity on the folder.
shareType 41.0The type of the entity that the folder can be shared with.

Sample Request Body

1{
2"accessType" : "manage",
3"shareType" : "user",
4"shareWithId" : "005R0000000Kg8yIAC"
5}

DELETE 

Deletes the folder share that has the specified folder ID.

/services/data/v43.0/folders/<folderid>/shares/<shareId>