Create repository
Create a repository with the specified name.
Authentication
Authorizationstring
API Key authentication via header
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.
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
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
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
429
Too Many Requests Error