Create repository
Create a repository with the specified name.
Headers
Authorization
Request
This endpoint expects an object.
name
The repository name
sourceLink
A URL to access the repository
commitUrlTemplate
A template for constructing a valid URL to view the commit
hunkUrlTemplate
A template for constructing a valid URL to view the hunk
type
The type of repository. If not specified, the default value is custom
.
Allowed values:
defaultBranch
The repository’s default branch. If not specified, the default value is main
.
Response
Repository response
name
The repository name
type
The type of repository
Allowed values:
defaultBranch
The repository's default branch
enabled
Whether or not a repository is enabled for code reference scanning
version
The version of the repository's saved information
_links
sourceLink
A URL to access the repository
commitUrlTemplate
A template for constructing a valid URL to view the commit
hunkUrlTemplate
A template for constructing a valid URL to view the hunk
branches
An array of the repository's branches that have been scanned for code references
_access