v1

latestSwagger 2.02026-07-175445133.1 KB
git

Create GitHub repository

Creates a new GitHub repository and sets it as the origin for a local repository

post/v1/git/repositories/{id}/github

Path parameters

idstring required

Repository ID

Request body

descriptionstring

Repository description

is_privateboolean

Whether the repository should be private

namestring

Repository name

Example request

{
  "description": "My awesome project",
  "name": "my-project"
}

Response

OK

messagestring

Success message

urlstring

URL of the created repository

Example response

{
  "message": "Repository created and origin updated successfully",
  "url": "https://github.com/user/repo"
}