Start the pull mirroring process for a project
POST
/api/v4/projects/{id}/mirror/pull
Starts the pull mirroring process for a specified project.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”Media typeapplication/json
object
action
Pull Request action
string
pull_request.number
Pull request IID
integer
pull_request.head.ref
Source branch
string
pull_request.head.sha
Source sha
string
pull_request.head.repo.full_name
Source repository
string
pull_request.base.ref
Target branch
string
pull_request.base.sha
Target sha
string
pull_request.base.repo.full_name
Target repository
string
force
Reset the mirror if it is in a hard-failed state and retry the update
boolean
Examplegenerated
{ "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}Responses
Section titled “Responses”OK
The project is not mirrored
Mirroring for the project is on pause
Not Found
The pull request event is not processable