---
title: "Set the scopes for a pull request (deprecated, use PUT)"
method: POST
path: "/repos/{owner}/{repository}/pulls/{number}/scopes"
tags: ["pull_requests"]
deprecated: true
---

# Set the scopes for a pull request (deprecated, use PUT)

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

> **Deprecated.**

Deprecated: use PUT on this endpoint instead.

## 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)
