---
title: "Set the scopes for a pull request"
method: PUT
path: "/repos/{owner}/{repository}/pulls/{number}/scopes"
tags: ["pull_requests"]
---

# Set the scopes for a pull request

`PUT /repos/{owner}/{repository}/pulls/{number}/scopes`

Set the scopes for a pull request

## Path parameters

- `number` integer, required — The pull request number
- `owner` string, required — The owner of the repository
- `repository` string, required — The name of the repository

## Request body

- ScopesBody
  - `scopes` string[], required
  - `all_scopes` boolean

## Response `204`

Successful Response

## Other responses

- `403` — Forbidden
- `404` — Not found
- `409` — Conflict
- `422` — Unprocessable entity

---

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