# Harness Pullreq API

**Canonical:** https://apis.io/apis/harness/harness-pullreq-api/  
**Provider:** Harness — https://apis.io/providers/harness/  
**Base URL:** https://app.harness.io  
**Documentation:** https://apidocs.harness.io

Harness Pullreq API is one of 488 APIs that [Harness](https://apis.io/providers/harness/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include pullreq. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a getting-started guide, authentication docs, and rate-limit docs.

The pullreq API from Harness — 40 operation(s) for pullreq.

## Operations (52)

| Method | Path | Summary |
|---|---|---|
| GET | `/code/api/v1/pullreq` | List pull requests in account/org/project |
| GET | `/code/api/v1/pullreq/count` | Count pull requests in account/org/project |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq` | List pull requests |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq` | Create pull request |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}` | Get pull request |
| PATCH | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}` | Update pull request |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/activities` | List activities |
| DELETE | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/automerge` | Disable the auto-merge option for the pull request |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/automerge` | Get the auto-merge option for the pull request |
| PUT | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/automerge` | Enable the auto-merge option for the pull request |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/branch` | Restore source branch |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/checks` | Get status checks |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/codeowners` | Get code owners |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/comments` | Create new pull request comment |
| DELETE | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/comments/{pullreq_comment_id}` | Delete pull request comment |
| PATCH | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/comments/{pullreq_comment_id}` | Update pull request comment |
| DELETE | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/comments/{pullreq_comment_id}/reactions/{pullreq_reaction_emoji}` | Remove emoji reaction from pull request comment |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/comments/{pullreq_comment_id}/reactions/{pullreq_reaction_emoji}` | Add emoji reaction to pull request comment |
| PUT | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/comments/{pullreq_comment_id}/status` | Update status of pull request comment |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/comments/apply-suggestions` | Apply pull request code comment suggestions |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/commits` | List commits |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/diff` | Get file changes |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/diff` | Get file changes |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/file-views` | List viewed files |
| PUT | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/file-views` | Mark file as viewed |
| DELETE | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/file-views/{file_path}` | Remove file view |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/merge` | Merge |
| DELETE | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/mergequeue` | Remove the pull request from the merge queue |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/mergequeue` | Get the pull request's merge-queue details |
| PUT | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/mergequeue` | Place the pull request to the target branch's merge queue |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/mergequeue/prioritize` | Reorder the merge queue so that this PR is at the head of the queue |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/metadata` | Get metadata |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/revert` | Revert of a merged pull request |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/reviewers` | List reviewers |
| PUT | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/reviewers` | Add reviewer |
| DELETE | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/reviewers/{pullreq_reviewer_id}` | Remove reviewer |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/reviewers/combined` | Reviewer combined list pull req |
| PUT | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/reviewers/usergroups` | User group reviewer add pull req |
| DELETE | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/reviewers/usergroups/{user_group_id}` | User group reviewer delete pull req |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/reviews` | Submit review |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/state` | Update state of pull request |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/suggestions/labels` | List suggested labels |
| DELETE | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/suggestions/labels/{label_id}` | Remove suggested label |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/suggestions/labels/{label_id}/apply` | Apply suggested label |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/suggestions/labels/batch` | Create label suggestions |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/suggestions/reviewers` | List suggested reviewers |
| DELETE | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/suggestions/reviewers/{principal_id}` | Remove suggested reviewer |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/suggestions/reviewers/{principal_id}/apply` | Apply suggested reviewer |
| POST | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/suggestions/reviewers/batch` | Create reviewer suggestions |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/view` | Get pull request view |
| PUT | `/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/view` | Create or update pull request view |
| GET | `/code/api/v1/repos/{repo_identifier}/pullreq/candidates` | Pr candidates |

## Machine-readable artifacts (10)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-pullreq-api-openapi.yml
- **Documentation** — https://apidocs.harness.io
- **APIReference** — https://apidocs.harness.io
- **GettingStarted** — https://developer.harness.io/docs/platform/automation/api/api-quickstart/
- **Authentication** — https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/authentication/harness-authentication.yml
- **OAuthScopes** — https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/scopes/harness-scopes.yml
- **ErrorCatalog** — https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/errors/harness-error-codes.yml
- **Conventions** — https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/conventions/harness-conventions.yml
- **Idempotency** — https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/conventions/harness-conventions.yml
- **RateLimits** — https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/rate-limits/harness-rate-limits.yml

## Other Harness APIs (12)

- [Harness Continuous Integration API](https://apis.io/apis/harness/ci-api/)
- [Harness Continuous Delivery and GitOps API](https://apis.io/apis/harness/cd-api/)
- [Harness Feature Management and Experimentation API](https://apis.io/apis/harness/feature-flags-api/)
- [Harness Cloud Cost Management API](https://apis.io/apis/harness/ccm-api/)
- [Harness Chaos Engineering API](https://apis.io/apis/harness/chaos-api/)
- [Harness Security Testing Orchestration API](https://apis.io/apis/harness/sto-api/)
- [Harness Internal Developer Portal API](https://apis.io/apis/harness/idp-api/)
- [Harness Code Repository API](https://apis.io/apis/harness/code-repo-api/)
- [Harness Service Reliability Management API](https://apis.io/apis/harness/srm-api/)
- [Harness Infrastructure as Code Management API](https://apis.io/apis/harness/iacm-api/)
- [Harness Supply Chain Security API](https://apis.io/apis/harness/ssca-api/)
- [Harness Software Engineering Insights API](https://apis.io/apis/harness/sei-api/)

## Tags

pullreq

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/harness/harness-pullreq-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/harness/.
