# dev.knotless.hideItem

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

✓ This is the authoritative definition for this NSID.

## Description

Hides a pull, an issue or a comment from a repository, or shows it again, as the repository's owner, logged in to this appview's pages.

## Links

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

## Definitions

### `dev.knotless.hideItem`

**Type**: `procedure`

Writes a dev.knotless.hide record naming it in the account logged in to this appview's web pages, which must own the repository, as `knotless hide` does; or, with hidden false, deletes those there are, as `knotless unhide` does. Requires the session cookie the pages' login sets.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `hidden` | `boolean` | No | False to show it again. |
| `repo` | `string` (at-uri) | Yes | The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it. |
| `subject` | `string` (at-uri) | Yes | The dev.knotless.pull, dev.knotless.issue or dev.knotless.comment. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `hidden` | `boolean` | Yes | Whether it is hidden now. |

#### Errors

- **NotFound**: No such repository.
- **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": "Writes a dev.knotless.hide record naming it in the account logged in to this appview's web pages, which must own the repository, as `knotless hide` does; or, with hidden false, deletes those there are, as `knotless unhide` does. Requires the session cookie the pages' login sets.",
      "errors": [
        {
          "description": "No such repository.",
          "name": "NotFound"
        },
        {
          "description": "No account is logged in to the pages, or its session has ended.",
          "name": "AuthenticationRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "hidden": {
              "default": true,
              "description": "False to show it again.",
              "type": "boolean"
            },
            "repo": {
              "description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
              "format": "at-uri",
              "type": "string"
            },
            "subject": {
              "description": "The dev.knotless.pull, dev.knotless.issue or dev.knotless.comment.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "repo",
            "subject"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "hidden": {
              "description": "Whether it is hidden now.",
              "type": "boolean"
            }
          },
          "required": [
            "hidden"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Hides a pull, an issue or a comment from a repository, or shows it again, as the repository's owner, logged in to this appview's pages.",
  "id": "dev.knotless.hideItem",
  "lexicon": 1
}
```
