# SetSharedLinkRecipient

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.SetSharedLinkRecipient/

Struct for set shared link recipient.

- **Full name:** `MFiles.SetSharedLinkRecipient`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-access_key"></a>`access_key` | `string` | 1 | The access key of the shared link. |
| <a id="f-recipient"></a>`recipient` | [`SharedLinkRecipient`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.SharedLinkRecipient/index.md) | 2 | The information about the shared link recipient linked to the access key to update expiration time and access type. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCSharedLinks.SetSharedLinkRecipients](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinks/SetSharedLinkRecipients/index.md): Updates the expiration time and access type of visitors of external links.

<a id="used-in-fields"></a>

## Used in fields

- [`SetSharedLinkRecipientsRequest.recipients`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinks/SetSharedLinkRecipients/index.md#request): The recipients to update, each with the link's `access_key` and the new `expires_at_utc` and `external_shared_link_access_type`.
- [`SetSharedLinkRecipientsResponse.recipients`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinks/SetSharedLinkRecipients/index.md#response): The updated recipients.
