v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
organization

Create a repository in an organization

post/org/{org}/repos

Path parameters

orgstring required

name of organization

Request body

auto_initboolean

Whether the repository should be auto-initialized?

default_branchstring

DefaultBranch of the repository (used when initializes and in template)

descriptionstring

Description of the repository to create

gitignoresstring

Gitignores to use

issue_labelsstring

Label-Set to use

licensestring

License to use

namestring required

Name of the repository to create

object_format_name'sha1' | 'sha256'

ObjectFormatName of the underlying git repository, empty string for default (sha1)

privateboolean

Whether the repository is private

readmestring

Readme of the repository to create

templateboolean

Whether the repository is template

trust_model'default' | 'collaborator' | 'committer' | 'collaboratorcommitter'

TrustModel of the repository

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