PUT
/
2025-04
/
pull-requests
/
{pullRequest}
/
sync
Sync a pull request
curl --request PUT \
  --url https://pullrule.com/api/2025-04/pull-requests/{pullRequest}/sync \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "<string>",
    "external_id": "<string>",
    "number": 123,
    "url": "<string>",
    "state": "closed",
    "title": "<string>",
    "body": "<string>",
    "additions": 123,
    "deletions": 123,
    "commits": 123,
    "changed_files": 123,
    "score": 123,
    "score_breakdown": [
      {
        "name": "<string>",
        "action": "ADD",
        "effect": 123,
        "expression": "<string>"
      }
    ],
    "created_at": 123,
    "links": {
      "member": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

pullRequest
string
required

The unique identifier of the pull request.

Response

PullRequest

data
object
required