# dev.knotless.setRepoIndexing

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

✓ This is the authoritative definition for this NSID.

## Description

Deprecated, and no longer served: knotless.dev indexes every private repository its members read there. Once let this appview keep an index of a private repository, or took that back, as its owner logged in to the pages.

## Links

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

## Definitions

### `dev.knotless.setRepoIndexing`

**Type**: `procedure`

Deprecated, and no longer served. Added this appview's DID to the private repository's appviews, or takes it out, in the repository record its owner keeps in its space, with the session the appview keeps for the owner logged in to its pages. Let, the appview syncs the repository's space into an index of its own, apart from its public one, with the session of a member who reads it there, and shows it from that only to members proven so. Taken back, it forgets that index at once. A public repository every appview indexes. Requires the session cookie the pages' login sets.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `indexed` | `boolean` | Yes | Whether this appview may keep an index of it. |
| `repo` | `string` (at-uri) | Yes | The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `indexed` | `boolean` | Yes | Whether this appview may now keep an index of it. |

#### Errors

- **NotFound**: No such repository the account logged in may read.
- **InvalidRequest**: The repository is public, and every appview indexes it.
- **Forbidden**: The account logged in is a member of the repository, not its owner.
- **AuthenticationRequired**: No account is logged in to the pages, or its session has ended.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Deprecated, and no longer served. Added this appview's DID to the private repository's appviews, or takes it out, in the repository record its owner keeps in its space, with the session the appview keeps for the owner logged in to its pages. Let, the appview syncs the repository's space into an index of its own, apart from its public one, with the session of a member who reads it there, and shows it from that only to members proven so. Taken back, it forgets that index at once. A public repository every appview indexes. Requires the session cookie the pages' login sets.",
      "errors": [
        {
          "description": "No such repository the account logged in may read.",
          "name": "NotFound"
        },
        {
          "description": "The repository is public, and every appview indexes it.",
          "name": "InvalidRequest"
        },
        {
          "description": "The account logged in is a member of the repository, not its owner.",
          "name": "Forbidden"
        },
        {
          "description": "No account is logged in to the pages, or its session has ended.",
          "name": "AuthenticationRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "indexed": {
              "description": "Whether this appview may keep an index of it.",
              "type": "boolean"
            },
            "repo": {
              "description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "repo",
            "indexed"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "indexed": {
              "description": "Whether this appview may now keep an index of it.",
              "type": "boolean"
            }
          },
          "required": [
            "indexed"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Deprecated, and no longer served: knotless.dev indexes every private repository its members read there. Once let this appview keep an index of a private repository, or took that back, as its owner logged in to the pages.",
  "id": "dev.knotless.setRepoIndexing",
  "lexicon": 1
}
```
