# dev.knotless.removeTriager

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

✓ This is the authoritative definition for this NSID.

## Description

Stops counting an account's labels on a repository.

## Links

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

## Definitions

### `dev.knotless.removeTriager`

**Type**: `procedure`

Takes the account out of the triagers of the repository's dev.knotless.repo record, as `knotless triagers remove` does. Only its owner, logged in to this appview's web pages, can: the appview writes with the session it keeps for that account, which the pages' session cookie names.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `repo` | `string` (at-uri) | Yes | The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it. |
| `who` | `string` (at-identifier) | Yes | The account, by handle or DID. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `triagers` | `array` | Yes | The repository's triagers now. |

#### Errors

- **NotFound**: No such repository.
- **InvalidRequest**: The account is no triager of it, or there is no such account.
- **AuthenticationRequired**: No account is logged in to the pages, or its session has ended.
- **Forbidden**: The account logged in is not the repository's owner.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Takes the account out of the triagers of the repository's dev.knotless.repo record, as `knotless triagers remove` does. Only its owner, logged in to this appview's web pages, can: the appview writes with the session it keeps for that account, which the pages' session cookie names.",
      "errors": [
        {
          "description": "No such repository.",
          "name": "NotFound"
        },
        {
          "description": "The account is no triager of it, or there is no such account.",
          "name": "InvalidRequest"
        },
        {
          "description": "No account is logged in to the pages, or its session has ended.",
          "name": "AuthenticationRequired"
        },
        {
          "description": "The account logged in is not the repository's owner.",
          "name": "Forbidden"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "repo": {
              "description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
              "format": "at-uri",
              "type": "string"
            },
            "who": {
              "description": "The account, by handle or DID.",
              "format": "at-identifier",
              "type": "string"
            }
          },
          "required": [
            "repo",
            "who"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "triagers": {
              "description": "The repository's triagers now.",
              "items": {
                "ref": "dev.knotless.getRepoSettings#triagerView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "triagers"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Stops counting an account's labels on a repository.",
  "id": "dev.knotless.removeTriager",
  "lexicon": 1
}
```
