# network.crate.fileVersion

> Published by [crate.network](https://lexicon.garden/identity/did:plc:hogkukbuqypodrkdgyvrw2ru)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:hogkukbuqypodrkdgyvrw2ru/network.crate.fileVersion)
- [Documentation](https://lexicon.garden/lexicon/did:plc:hogkukbuqypodrkdgyvrw2ru/network.crate.fileVersion/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:hogkukbuqypodrkdgyvrw2ru/network.crate.fileVersion/examples)

## Definitions

### `network.crate.fileVersion`

**Type**: `record`

Immutable snapshot created atomically before replacing a file head.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `capturedAt` | `string` (datetime) | Yes |  |
| `fileId` | `string` (tid) | Yes |  |
| `record` | `ref` → `network.crate.file` | Yes |  |
| `revision` | `string` (cid) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Immutable snapshot created atomically before replacing a file head.",
      "key": "any",
      "record": {
        "properties": {
          "capturedAt": {
            "format": "datetime",
            "type": "string"
          },
          "fileId": {
            "format": "tid",
            "type": "string"
          },
          "record": {
            "ref": "network.crate.file",
            "type": "ref"
          },
          "revision": {
            "format": "cid",
            "type": "string"
          }
        },
        "required": [
          "fileId",
          "revision",
          "capturedAt",
          "record"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "network.crate.fileVersion",
  "lexicon": 1
}
```
