Create repository

Create a repository.

Repos collect Full scans and Diff scans and are typically associated with a git repo.

This endpoint consumes 1 unit of your quota.

This endpoint requires the following org token scopes:

  • repo:create
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The slug of the organization

Query Params
string

Set to "redirect" to receive a 302 redirect to the existing repo instead of a 409 error when a duplicate slug is detected.

Body Params
string

The display name of the repository. When provided without a slug, the slug is automatically derived from the name. When omitted, the slug is used as the name. At least one of name or slug must be provided.

string | null

The description of the repository

string | null

The homepage URL of the repository

string
enum
Defaults to private

The visibility of the repository

Allowed:
boolean
Defaults to false

Whether the repository is archived or not

string | null
Defaults to main

The default branch of the repository

string

The workspace of the repository

string

The slug of the repository. If provided, used directly instead of being derived from name. Must only contain ASCII letters, digits, and the characters ., -, and _.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json