# place.stream.moderation.deletePin

> Unpin a pinned chat message on behalf of a streamer. Requires 'message.pin' permission. Deletes the place.stream.chat.pinnedRecord from the streamer's repo.

- Kind: procedure
- Authority: moderation.stream.place
- Lexicon: 1
- Published by [stream.place](https://lexicon.garden/identity/did:plc:rbvrr34edl5ddpuwcubjiost), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.moderation.deletePin)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.moderation.deletePin/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.moderation.deletePin/analytics)

## Procedure (`place.stream.moderation.deletePin`)

Type: procedure · POST

### Input (application/json)

- `pinUri` (string · at-uri, required): The AT-URI of the pinned record to delete.
- `streamer` (string · did, required): The DID of the streamer.

### Output (application/json)


### Errors

- `Unauthorized`: The request lacks valid authentication credentials.
- `Forbidden`: The caller does not have permission to unpin messages for this streamer.
- `SessionNotFound`: The streamer's OAuth session could not be found or is invalid.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Unpin a pinned chat message on behalf of a streamer. Requires 'message.pin' permission. Deletes the place.stream.chat.pinnedRecord from the streamer's repo.",
      "errors": [
        {
          "description": "The request lacks valid authentication credentials.",
          "name": "Unauthorized"
        },
        {
          "description": "The caller does not have permission to unpin messages for this streamer.",
          "name": "Forbidden"
        },
        {
          "description": "The streamer's OAuth session could not be found or is invalid.",
          "name": "SessionNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "pinUri": {
              "description": "The AT-URI of the pinned record to delete.",
              "format": "at-uri",
              "type": "string"
            },
            "streamer": {
              "description": "The DID of the streamer.",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "streamer",
            "pinUri"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "place.stream.moderation.deletePin",
  "lexicon": 1
}
```
