# dev.knotless.redirect

> Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk)

✓ This is the authoritative definition for this NSID.

## Description

Left under a repository's old name when it is renamed, so clone URLs, remotes and links that use the old name still reach it.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.redirect)
- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.redirect/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.redirect/examples)

## Definitions

### `dev.knotless.redirect`

**Type**: `record`

Keyed by the old name. A rename repoints every redirect to the repository at its new name, so each is one hop. A repository created under the name replaces the redirect.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `to` | `ref` → `dev.knotless.defs#repoRef` | Yes | The repository under the name it has now. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Keyed by the old name. A rename repoints every redirect to the repository at its new name, so each is one hop. A repository created under the name replaces the redirect.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "to": {
            "description": "The repository under the name it has now.",
            "ref": "dev.knotless.defs#repoRef",
            "type": "ref"
          }
        },
        "required": [
          "to",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "Left under a repository's old name when it is renamed, so clone URLs, remotes and links that use the old name still reach it.",
  "id": "dev.knotless.redirect",
  "lexicon": 1
}
```
