Git Provider Connections

Create an empty repository through one of your git connections

Changed on

Uses the token of a connection you own, so the repository is created as you and with exactly the access that token has. Another user's connection answers 404. Pushing code into the new repository is a separate step.

post/git-connections/{connection_id}/repositories

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/git-connections/{connection_id}/repositories
  • Auth: HTTP bearer

Path parameters

connection_idinteger required

Connection ID

Request body

descriptionstring nullable

Short description, up to 350 characters.

namestring required

Repository name: letters, digits, -, _ and ., up to 100 characters.

ownerstring nullable

Account or organization to create it under. Defaults to the connection's own account.

privateboolean

Whether the repository is private. Defaults to true.

Example request

{
  "name": "my-app"
}

Response

Repository created

clone_urlstring required
connection_idinteger required
default_branchstring required
full_namestring required
namestring required
ownerstring required
privateboolean required
web_urlstring required

Changes