{% extends "docs/base.html" %} {% block docs_content %}

Update pull status

Set pull status to open, draft, or closed.

Endpoints

PUT /api/v1/teams/{team_slug}/repos/{repo_slug}/pulls/{number}/status
PUT /api/v1/users/{username}/repos/{repo_slug}/pulls/{number}/status
Authenticated

Request

JSON body:

Use the merge endpoint to set status to merged.

Usage

curl --request PUT \
  --header "Authorization: Bearer $PEARING_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{"status": "closed"}' \
  "$PEARING_API_URL/v1/teams/platform/repos/website/pulls/42/status"

Success

200 OK with the updated pull record, including creator, merger, and closer actor fields where applicable.

{
  "uuid": "...",
  "number": 42,
  "status": "closed",
  "closed_at": "2026-03-09T13:00:00Z",
  "updated_at": "2026-03-09T13:00:00Z"
}

Errors

Common auth errors are documented on the API overview page.

{% endblock %}