apicheats.dev Cheat sheet Raw .md
POST

Try POST /repos/{template_owner}/{template_repo}/generate — GitHub API

GitHub playground

Create a repository using a template

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

5 body fields
  • owner · optional · string — The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.
  • name · required · string — The name of the new repository.
  • description · optional · string — A short description of the new repository.
  • include_all_branches · optional · boolean — Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.
  • private · optional · boolean — Either `true` to create a new private repository or `false` to create a new public one.