Create a repository
Create a repository. Once the repository is created, it will also be created on the Git server. The repository name must be unique within your account. Once created, you can then push your code to this repository. The repo will be available at `git.freestyle.sh/{repo-id}`
Request Body
application/json
Requiredname
string | nullThis name is not visible to users, and is only accessible to you via API and in the dashboard. Mostly useful for observability.
public
booleanfalse
defaultBranch
string | nullThe default branch name for the repository. Defaults to "main" if not specified.
source
objectFork from another Git repository. Cannot be used with import
.
import
Files | Tar | Zip | GitImport static content with an initial commit. Cannot be used with source
.
Response Body
200
Repository created successfully
repoId
Requiredstring"uuid"
400
Invalid request
message
Requiredstring500
Internal server error
message
RequiredstringRepository created successfully