# town.delve.embed.recordWithMedia

> Published by [delve.town](https://lexicon.garden/identity/did:plc:qzqct2rrq4u2gmy5g3mjxske)

✓ This is the authoritative definition for this NSID.

## Description

A representation of a record embedded in a Bluesky record (eg, a post), alongside other compatible embeds. For example, a quote post and image, or a quote post and external URL card.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.embed.recordWithMedia)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.embed.recordWithMedia/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.embed.recordWithMedia/examples)

## Definitions

### `town.delve.embed.recordWithMedia`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `media` | `union` | Yes |  |
| `record` | `ref` → `town.delve.embed.record` | Yes |  |

### `town.delve.embed.recordWithMedia#view`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `media` | `union` | Yes |  |
| `record` | `ref` → `town.delve.embed.record#view` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "properties": {
        "media": {
          "refs": [
            "town.delve.embed.images",
            "town.delve.embed.video",
            "town.delve.embed.gallery",
            "town.delve.embed.external"
          ],
          "type": "union"
        },
        "record": {
          "ref": "town.delve.embed.record",
          "type": "ref"
        }
      },
      "required": [
        "record",
        "media"
      ],
      "type": "object"
    },
    "view": {
      "properties": {
        "media": {
          "refs": [
            "town.delve.embed.images#view",
            "town.delve.embed.video#view",
            "town.delve.embed.gallery#view",
            "town.delve.embed.external#view"
          ],
          "type": "union"
        },
        "record": {
          "ref": "town.delve.embed.record#view",
          "type": "ref"
        }
      },
      "required": [
        "record",
        "media"
      ],
      "type": "object"
    }
  },
  "description": "A representation of a record embedded in a Bluesky record (eg, a post), alongside other compatible embeds. For example, a quote post and image, or a quote post and external URL card.",
  "id": "town.delve.embed.recordWithMedia",
  "lexicon": 1
}
```
