repository
Create a repository using a template
post/repos/{template_owner}/{template_repo}/generate
Path parameters
template_ownerstring required
owner of the template repository
template_repostring required
name of the template repository
Request body
avatarboolean
include avatar of the template repo
default_branchstring
Default branch of the new repository
descriptionstring
Description of the repository to create
git_contentboolean
include git content of default branch in template repo
git_hooksboolean
include git hooks in template repo
labelsboolean
include labels in template repo
namestring required
ownerstring required
the organization's name or individual user's name who will own the new repository
privateboolean
Whether the repository is private
protected_branchboolean
include protected branches in template repo
topicsboolean
include topics in template repo
webhooksboolean
include webhooks in template repo
Response
Repository
allow_fast_forward_only_mergeboolean
allow_manual_mergeboolean
allow_merge_commitsboolean
allow_merge_updateboolean
allow_rebaseboolean
allow_rebase_explicitboolean
allow_rebase_updateboolean
allow_squash_mergeboolean
archivedboolean
archived_atstring date-time
autodetect_manual_mergeboolean
avatar_urlstring
branch_countinteger
clone_urlstring
created_atstring date-time
default_allow_maintainer_editboolean
default_branchstring
default_delete_branch_after_mergeboolean
default_merge_stylestring
default_target_branchstring
default_update_stylestring
descriptionstring
emptyboolean
forkboolean
forks_countinteger
full_namestring
has_actionsboolean
has_codeboolean
has_issuesboolean
has_packagesboolean
has_projectsboolean
has_pull_requestsboolean
has_releasesboolean
has_wikiboolean
html_urlstring
idinteger
ignore_whitespace_conflictsboolean
internalboolean
languagestring
languages_urlstring
licensesstring[]
linkstring
mirrorboolean
mirror_intervalstring
mirror_last_sync_atstring date-time
mirror_updatedstring date-time
namestring
object_format_name'sha1' | 'sha256'
ObjectFormatName of the underlying git repository
open_issues_countinteger
open_pr_counterinteger
original_urlstring
privateboolean
projects_modestring
release_counterinteger
sizeinteger
ssh_urlstring
stars_countinteger
templateboolean
topicsstring[]
updated_atstring date-time
urlstring
watchers_countinteger
websitestring