---
title: "Submit a pending review to a pull request"
method: POST
path: "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}"
tags: ["repository"]
---

# Submit a pending review to a pull request

`POST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}`

## Path parameters

- `owner` string, required
- `repo` string, required
- `index` integer, required
- `id` integer, required

## Request body

- SubmitPullReviewOptions — SubmitPullReviewOptions are options to submit a pending pull request review
  - `body` string
  - `event` 'APPROVED' | 'PENDING' | 'COMMENT' | 'REQUEST_CHANGES' | 'REQUEST_REVIEW'

## Response `200`

PullReview

- PullReview — PullReview represents a pull request review
  - `body` string
  - `comments_count` integer
  - `commit_id` string
  - `dismissed` boolean
  - `html_url` string — HTMLURL is the web URL for viewing the review
  - `id` integer
  - `official` boolean
  - `pull_request_url` string — HTMLPullURL is the web URL for the pull request
  - `stale` boolean
  - `state` 'APPROVED' | 'PENDING' | 'COMMENT' | 'REQUEST_CHANGES' | 'REQUEST_REVIEW'
  - `submitted_at` string, date-time
  - `team` Team — Team represents a team in an organization
    - `can_create_org_repo` boolean — Whether the team can create repositories in the organization
    - `description` string — The description of the team
    - `id` integer — The unique identifier of the team
    - `includes_all_repositories` boolean — Whether the team has access to all repositories in the organization
    - `name` string — The name of the team
    - `organization` Organization — Organization represents an organization
      - `avatar_url` string — The URL of the organization's avatar
      - `description` string — The description of the organization
      - `email` string — The email address of the organization
      - `full_name` string — The full display name of the organization
      - `id` integer — The unique identifier of the organization
      - `location` string — The location of the organization
      - `name` string — The name of the organization
      - `repo_admin_change_team_access` boolean — Whether repository administrators can change team access
      - `username` string — username of the organization deprecated
      - `visibility` 'public' | 'limited' | 'private' — The visibility level of the organization (public, limited, private)
      - `website` string — The website URL of the organization
    - `permission` 'none' | 'read' | 'write' | 'admin' | 'owner'
    - `units` string[] — Deprecated: This variable should be replaced by UnitsMap and will be dropped in later versions.
    - `units_map` object
    - `visibility` 'public' | 'limited' | 'private' — Team visibility within the organization. "private" teams are only listable by members and org owners; "limited" teams are listable by any organization member; "public" teams are listable by any signed-in user.
  - `updated_at` string, date-time
  - `user` User — User represents a user
    - `active` boolean — Is user active
    - `avatar_url` string — URL to the user's avatar
    - `created` string, date-time
    - `description` string — the user's description
    - `email` string, email
    - `followers_count` integer — user counts
    - `following_count` integer
    - `full_name` string — the user's full name
    - `html_url` string — URL to the user's gitea page
    - `id` integer — the user's id
    - `is_admin` boolean — Is the user an administrator
    - `language` string — User locale
    - `last_login` string, date-time
    - `location` string — the user's location
    - `login` string — login of the user, same as `username`
    - `login_name` string — identifier of the user, provided by the external authenticator (if configured)
    - `prohibit_login` boolean — Is user login prohibited
    - `restricted` boolean — Is user restricted
    - `source_id` integer — The ID of the user's Authentication Source
    - `starred_repos_count` integer
    - `visibility` 'public' | 'limited' | 'private' — User visibility level option: public, limited, private
    - `website` string — the user's website

## Other responses

- `404` — APINotFound is a not found empty response
- `422` — APIValidationError is error format response related to input validation

---

[API](https://skmtc.net/gitea/apis/gitea-api.md) · [All operations](https://skmtc.net/gitea/apis/gitea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitea/gitea-api/versions/350de506cefa/schema)
