# dev.knotless.getPullDiff

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

✓ This is the authoritative definition for this NSID.

## Description

Some files of a pull's diff.

## Links

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

## Definitions

### `dev.knotless.getPullDiff`

**Type**: `query`

The files of a pull's diff that `paths` names, rows and all, as dev.knotless.getThread shows them, for a page that listed them with its `filesOnly`. No authentication; responses are not personalized.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `paths` | `array` | Yes | The files, by their paths after the change, or before it for one deleted; a renamed file is found as such only when both its paths are named. |
| `repo` | `string` (at-uri) | Yes | The repository's dev.knotless.repo record. Its authority may be a handle; a name the repository had before, or an owner it moved from with its agreement, finds it under the name it has now. |
| `uri` | `string` (at-uri) | Yes | The dev.knotless.pull record. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `files` | `array` | Yes | Those of the files named that the pull changes, in the diff's order. |

#### Errors

- **NotFound**: No such repository or pull, or the pull's branch is gone.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The files of a pull's diff that `paths` names, rows and all, as dev.knotless.getThread shows them, for a page that listed them with its `filesOnly`. No authentication; responses are not personalized.",
      "errors": [
        {
          "description": "No such repository or pull, or the pull's branch is gone.",
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "files": {
              "description": "Those of the files named that the pull changes, in the diff's order.",
              "items": {
                "ref": "dev.knotless.defs#fileDiffView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "files"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "paths": {
            "description": "The files, by their paths after the change, or before it for one deleted; a renamed file is found as such only when both its paths are named.",
            "items": {
              "maxLength": 4096,
              "type": "string"
            },
            "maxLength": 50,
            "minLength": 1,
            "type": "array"
          },
          "repo": {
            "description": "The repository's dev.knotless.repo record. Its authority may be a handle; a name the repository had before, or an owner it moved from with its agreement, finds it under the name it has now.",
            "format": "at-uri",
            "type": "string"
          },
          "uri": {
            "description": "The dev.knotless.pull record.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "repo",
          "uri",
          "paths"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Some files of a pull's diff.",
  "id": "dev.knotless.getPullDiff",
  "lexicon": 1
}
```
