Skip to content

Syncs the default branch of a fork with the base branch

POST
/repos/{owner}/{repo}/sync_fork
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

APIEmpty is an empty response

Media type application/json

APIError is error format response

Media type application/json

APIError is an api error with a message

object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APINotFound is a not found error response

Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{
"errors": [
"example"
],
"message": "example",
"url": "example"
}