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
Response
Repository
Example response
{
"repo_transfer": {
"teams": [
{
"units": [
"repo.code",
"repo.issues",
"repo.ext_issues",
"repo.wiki",
"repo.pulls",
"repo.releases",
"repo.projects",
"repo.ext_wiki"
],
"units_map": {
"repo.code": "read",
"repo.ext_issues": "none",
"repo.ext_wiki": "none",
"repo.issues": "write",
"repo.projects": "none",
"repo.pulls": "owner",
"repo.releases": "none",
"repo.wiki": "admin"
}
}
]
}
}