# dev.knotless.dismissReview

> As `knotless dismiss` does: the repository's owner or a collaborator writes a dev.knotless.comment on the pull naming the review in `dismisses`, its body the reason. The review then counts for nothing, for or against the pull, until its reviewer reviews again. Requires the session cookie the pages' login sets.

- Kind: procedure
- Authority: knotless.dev
- Lexicon: 1
- Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.dismissReview)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.dismissReview/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.dismissReview/analytics)

## Procedure (`dev.knotless.dismissReview`)

Type: procedure · POST

### Input (application/json)

- `pull` (string · at-uri, required): The dev.knotless.pull.
- `reason` (string, required): Why, in Markdown: the comment's body.
  - Constraints: maxLength: 20000
- `repo` (string · at-uri, required): The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.
- `reviewer` (string · did, required): The account whose review it dismisses.

### Output (application/json)

- `uri` (string · at-uri, required): The dev.knotless.comment that dismissed it.

### Errors

- `NotFound`: No such repository.
- `AuthenticationRequired`: No account is logged in to the pages, or its session has ended.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "As `knotless dismiss` does: the repository's owner or a collaborator writes a dev.knotless.comment on the pull naming the review in `dismisses`, its body the reason. The review then counts for nothing, for or against the pull, until its reviewer reviews again. 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": {
            "pull": {
              "description": "The dev.knotless.pull.",
              "format": "at-uri",
              "type": "string"
            },
            "reason": {
              "description": "Why, in Markdown: the comment's body.",
              "maxLength": 20000,
              "type": "string"
            },
            "repo": {
              "description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
              "format": "at-uri",
              "type": "string"
            },
            "reviewer": {
              "description": "The account whose review it dismisses.",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "repo",
            "pull",
            "reviewer",
            "reason"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "uri": {
              "description": "The dev.knotless.comment that dismissed it.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Dismisses a reviewer's standing review of a pull, as the account logged in to this appview's pages.",
  "id": "dev.knotless.dismissReview",
  "lexicon": 1
}
```
