# network.crate.file

> 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.file)
- [Documentation](https://lexicon.garden/lexicon/did:plc:hogkukbuqypodrkdgyvrw2ru/network.crate.file/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:hogkukbuqypodrkdgyvrw2ru/network.crate.file/examples)

## Definitions

### `network.crate.file`

**Type**: `record`

A mutable file head, addressed by its stable record key in a private drive space.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `blob` | `blob` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `isDirectory` | `boolean` | Yes |  |
| `name` | `string` | Yes |  |
| `parentId` | `string` (tid) | No |  |
| `trashedAt` | `string` (datetime) | No |  |
| `updatedAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A mutable file head, addressed by its stable record key in a private drive space.",
      "key": "tid",
      "record": {
        "properties": {
          "blob": {
            "accept": [
              "*/*"
            ],
            "maxSize": 1073741824,
            "type": "blob"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "isDirectory": {
            "type": "boolean"
          },
          "name": {
            "maxLength": 1024,
            "minLength": 1,
            "type": "string"
          },
          "parentId": {
            "format": "tid",
            "type": "string"
          },
          "trashedAt": {
            "format": "datetime",
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "name",
          "isDirectory",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "network.crate.file",
  "lexicon": 1
}
```
