# Pins

## Overview

Sometimes you'll want to pin your favorite activity to a feed. You can pin an activity like this:

```csharp label="C#"
var response = await _feedsV3Client.PinActivityAsync(
    "user",
    _testFeedId,
    activityId,
    new PinActivityRequest
    {
        UserID = _testUserId
    }
);
```

When you read a feed pinned activities are automatically returned:

```csharp label="C#"
var response = await _feedsV3Client.UnpinActivityAsync(
    "user",
    _testFeedId,
    activityId,
    new { user_id = _testUserId }
);
```

---

For the most recent version of this documentation, visit [https://getstream.io/activity-feeds/docs/dotnet-csharp/pins/](https://getstream.io/activity-feeds/docs/dotnet-csharp/pins/).