# dev.knotless.getPullDiff

> 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.

- Kind: query
- 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.getPullDiff)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.getPullDiff/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.getPullDiff/analytics)

## Query (`dev.knotless.getPullDiff`)

Type: query · GET

### Parameters (query string)

- `paths` (array, required): 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.
  - Constraints: minLength: 1, maxLength: 50
  - `items` (string)
    - Constraints: maxLength: 4096
- `repo` (string · at-uri, required): 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, required): The dev.knotless.pull record.

### Output (application/json)

- `files` (array, required): Those of the files named that the pull changes, as an editor's file tree lists them, in each directory its directories before its files, each by name.
  - `items` (ref)
    - Reference: `dev.knotless.defs#fileDiffView`

### Errors

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

## 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, as an editor's file tree lists them, in each directory its directories before its files, each by name.",
              "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
}
```
