Skip to content

Start the pull mirroring process for a project

POST
/api/v4/projects/{id}/mirror/pull

Starts the pull mirroring process for a specified project.

id
required
One of:
string

The ID or URL-encoded path of the project

Media type application/json
object
action

Pull Request action

string
nullable
pull_request.number

Pull request IID

integer
nullable
pull_request.head.ref

Source branch

string
nullable
pull_request.head.sha

Source sha

string
nullable
pull_request.head.repo.full_name

Source repository

string
nullable
pull_request.base.ref

Target branch

string
nullable
pull_request.base.sha

Target sha

string
nullable
pull_request.base.repo.full_name

Target repository

string
nullable
force

Reset the mirror if it is in a hard-failed state and retry the update

boolean
nullable
Example generated
{
"action": "example",
"pull_request.number": 1,
"pull_request.head.ref": "example",
"pull_request.head.sha": "example",
"pull_request.head.repo.full_name": "example",
"pull_request.base.ref": "example",
"pull_request.base.sha": "example",
"pull_request.base.repo.full_name": "example",
"force": true
}

OK

The project is not mirrored

Mirroring for the project is on pause

Not Found

The pull request event is not processable