apicheats.dev Cheat sheet Raw .md
POST

Try POST /repos/{owner}/{repo}/forks — GitHub API

GitHub playground

Create a fork

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

3 body fields
  • organization · optional · string — Optional parameter to specify the organization name if forking into an organization.
  • name · optional · string — When forking from an existing repository, a new name for the fork.
  • default_branch_only · optional · boolean — When forking from an existing repository, fork with only the default branch.