Create a repository using a template
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Name of the template repository owner
Name of the template repository
Request Body
Section titled “ Request Body ”GenerateRepoOption options when creating repository using a template
object
Include avatar of the template repo
Default branch of the new repository
Description of the repository to create
Include git content of default branch in template repo
Include git hooks in template repo
Include labels in template repo
Name of the repository to create
The organization or person who will own the new repository
Whether the repository is private
Include protected branches in template repo
Include topics in template repo
Include webhooks in template repo
Example generated
{ "avatar": true, "default_branch": "example", "description": "example", "git_content": true, "git_hooks": true, "labels": true, "name": "example", "owner": "example", "private": true, "protected_branch": true, "topics": true, "webhooks": true}Responses
Section titled “ Responses ”Repository
Repository represents a repository
object
ExternalTracker represents settings for external tracker
object
External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index.
External Issue Tracker issue regular expression
External Issue Tracker Number Format, either numeric, alphanumeric, or regexp
URL of external issue tracker.
ExternalWiki represents setting for external wiki
object
URL of external wiki.
Is the wiki enabled
Have wiki pages ever been created
InternalTracker represents settings for internal tracker
object
Let only contributors track time (Built-in issue tracker)
Enable dependencies for issues and pull requests (Built-in issue tracker)
Enable time tracking (Built-in issue tracker)
ObjectFormatName of the underlying git repository
User represents a user
object
Is user active
URL to the user’s avatar
The user’s description
User counts
The user’s full name
URL to the user’s profile page
The user’s id
Is the user an administrator
User locale
The user’s location
The user’s username
The user’s authentication sign-in name.
Is user login prohibited
The user’s pronouns
Is user restricted
The ID of the user’s Authentication Source
User visibility level option: public, limited, private
The user’s website
Permission represents a set of permissions
object
RepoTransfer represents a pending repo transfer
object
User represents a user
object
Is user active
URL to the user’s avatar
The user’s description
User counts
The user’s full name
URL to the user’s profile page
The user’s id
Is the user an administrator
User locale
The user’s location
The user’s username
The user’s authentication sign-in name.
Is user login prohibited
The user’s pronouns
Is user restricted
The ID of the user’s Authentication Source
User visibility level option: public, limited, private
The user’s website
User represents a user
object
Is user active
URL to the user’s avatar
The user’s description
User counts
The user’s full name
URL to the user’s profile page
The user’s id
Is the user an administrator
User locale
The user’s location
The user’s username
The user’s authentication sign-in name.
Is user login prohibited
The user’s pronouns
Is user restricted
The ID of the user’s Authentication Source
User visibility level option: public, limited, private
The user’s website
Team represents a team in an organization
object
Organization represents an organization
object
Deprecated
object
Example
{ "object_format_name": "sha1", "owner": { "login_name": "empty" }, "repo_transfer": { "doer": { "login_name": "empty" }, "recipient": { "login_name": "empty" }, "teams": [ { "permission": "none", "units": [ "repo.code", "repo.issues", "repo.ext_issues", "repo.wiki", "repo.pulls", "repo.releases", "repo.projects", "repo.ext_wiki" ], "units_map": { "repo.actions": "none", "repo.code": "read", "repo.ext_issues": "none", "repo.ext_wiki": "none", "repo.issues": "write", "repo.packages": "none", "repo.projects": "none", "repo.pulls": "owner", "repo.releases": "none", "repo.wiki": "admin" } } ] }}APIForbiddenError is a forbidden error response
object
Example generated
{ "message": "example", "url": "example"}APINotFound is a not found error response
object
Example generated
{ "errors": [ "example" ], "message": "example", "url": "example"}The repository with the same name already exists.
QuotaExceeded
Headers
Section titled “ Headers ”APIValidationError is error format response related to input validation
object
Example generated
{ "message": "example", "url": "example"}