Create Repository

Creates a new repository on the account.

Creates a new repository on account


Valid Authentication Methods

API Key Grants:

  • RepositoryEdit

OAuth 2.0 User Token Scopes:

  • repository
Body Params
string
required

Display name for the repository

string
enum

Optional. Determines repository visibility. Defaults to UNRESTRICTED.

Allowed:
users
array of objects
required

List of users to add to the repository. Must contain at least one owner.

users*
groups
array of integers

Optional. Group Ids of groups whose members should have access to this repository. Only applicable to RESTRICTED repositories.

groups
Responses

400

Bad Request. Occurs when no owner is provided, members or groups are added to an UNRESTRICTED repository, or invalid user/group IDs.

403

Forbidden. Occurs when the user does not have permission to create a repository.

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