---
title: "Create pull request"
method: POST
path: "/v1/git/worktrees/{id}/pr"
tags: ["git"]
---

# Create pull request

`POST /v1/git/worktrees/{id}/pr`

Creates a pull request for a worktree branch

## Path parameters

- `id` string, required

## Request body

- InternalHandlersCreatePullRequestRequest
  - `body` string
  - `force_push` boolean
  - `title` string

## Response `200`

OK

- GithubComVanpeltCatnipInternalModelsPullRequestResponse — Response containing pull request information after creation
  - `base_branch` string — Base branch (target branch of the PR)
  - `body` string — Body/description of the pull request
  - `head_branch` string — Head branch (source branch of the PR)
  - `number` integer — Pull request number
  - `repository` string — Repository in owner/repo format
  - `title` string — Title of the pull request
  - `url` string — URL to the pull request

---

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