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/jsonRequirednamestring | nullThis name is not visible to users, and is only accessible to you via API and in the dashboard. Mostly useful for observability.
publicbooleanfalsedefaultBranchstring | nullThe default branch name for the repository. Defaults to "main" if not specified.
sourceobjectFork from another Git repository. Cannot be used with import.
importFiles | Tar | Zip | GitImport static content with an initial commit. Cannot be used with source.
devServersobjectResponse Body
200
Repository created successfully
repoIdRequiredstring"uuid"500
Error: InternalServerError
errorRequiredstringError code in SCREAMING_SNAKE_CASE
messageRequiredstringHuman-readable error message
Repository created successfully