# Create repository Endpoint: POST /code/api/v1/repos Version: 1.0 Security: x-api-key ## Query parameters: - `accountIdentifier` (string, required) Account Identifier for the Entity. - `orgIdentifier` (string) Organization Identifier for the Entity. - `projectIdentifier` (string) Project Identifier for the Entity. ## Request fields (application/json): - `default_branch` (string) - `description` (string) - `fork_id` (integer) - `git_ignore` (string) - `identifier` (string) - `is_public` (boolean) - `license` (string) - `parent_ref` (string) - `readme` (boolean) - `uid` (string) ## Response 201 fields (application/json): - `archived` (boolean) - `created` (integer) - `created_by` (integer) - `default_branch` (string) - `deleted` (integer,null) - `description` (string) - `fork_id` (integer) - `git_ssh_url` (string) - `git_url` (string) - `id` (integer) - `identifier` (string) - `importing` (boolean) - `is_empty` (boolean) - `is_favorite` (boolean) - `is_public` (boolean) - `last_git_push` (integer) - `num_closed_pulls` (integer) - `num_forks` (integer) - `num_merged_pulls` (integer) - `num_open_pulls` (integer) - `num_pulls` (integer) - `parent_id` (integer) - `path` (string) - `size` (integer) size of the repository in KiB - `size_lfs` (integer) size of the repository LFS in KiB - `size_updated` (integer) - `state` (integer,null) - `updated` (integer) ## Response 400 fields (application/json): - `message` (string) - `values` (object) ## Response 401 fields (application/json): - `message` (string) - `values` (object) ## Response 403 fields (application/json): - `message` (string) - `values` (object) ## Response 500 fields (application/json): - `message` (string) - `values` (object)