---
title: "Update a pullrequest"
method: PATCH
path: "/repo/{connection_id}/pullrequest/{id}"
tags: ["repo", "pullrequest"]
---

# Update a pullrequest

`PATCH /repo/{connection_id}/pullrequest/{id}`

## Request

- Base URL: `http://api.unified.to`
- URL: `http://api.unified.to/repo/{connection_id}/pullrequest/{id}`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- RepoPullrequest
  - `id` string
  - `created_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `user_ids` string[]
  - `repo_id` string: (reference to RepoRepository)
  - `title` string
  - `notes` string
  - `target_branch_id` string
  - `source_branch_id` string
  - `status` 'PENDING' | 'APPROVED' | 'REJECTED'
  - `labels` string[]
  - `closed_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `commit_ids` string[]
  - `metadata` RepoMetadata[]
    - `id` string
    - `slug` string
    - `value` unknown
    - `namespace` string
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
    - `extra_data` unknown
  - `raw` unknown

## Response `200`

Successful

- RepoPullrequest
  - `id` string
  - `created_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `user_ids` string[]
  - `repo_id` string: (reference to RepoRepository)
  - `title` string
  - `notes` string
  - `target_branch_id` string
  - `source_branch_id` string
  - `status` 'PENDING' | 'APPROVED' | 'REJECTED'
  - `labels` string[]
  - `closed_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `commit_ids` string[]
  - `metadata` RepoMetadata[]
    - `id` string
    - `slug` string
    - `value` unknown
    - `namespace` string
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
    - `extra_data` unknown
  - `raw` unknown

---

[API](https://skmtc.dev/unified/apis/unified-to-api-2.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api-2/revisions/7a38bdd7f089?raw)
