---
title: "List CODEOWNERS errors"
method: GET
path: "/repos/{owner}/{repo}/codeowners/errors"
tags: ["repos"]
---

# List CODEOWNERS errors

`GET /repos/{owner}/{repo}/codeowners/errors`

List any syntax errors that are detected in the CODEOWNERS
file.

For more information about the correct CODEOWNERS syntax,
see "[About code owners](https://docs.github.com/enterprise-server@3.7/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners)."

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `ref` string

## Response `200`

Response

- CodeownersErrors — A list of errors found in a repo's CODEOWNERS file
  - `errors` object[], required
    - `line` integer, required — The line number where this errors occurs.
    - `column` integer, required — The column number where this errors occurs.
    - `source` string — The contents of the line where the error occurs.
    - `kind` string, required — The type of error.
    - `suggestion` string, nullable — Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.
    - `message` string, required — A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting).
    - `path` string, required — The path of the file where the error occured.

## Other responses

- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-6.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-6/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-6/versions/15db3fa0759b/schema)
