Create repository
An account needs create permission on the project. A plugin installation’s access token needs repositories:create; the repository then goes in the installation’s project and joins the installation, and the response comes after the installation can mint tokens for it. An installation token cannot set clusterHost or mirrorClusterSlugs. An installation creates at most its plugin’s daily limit of repositories in a rolling 24 hours (100 by default); past it the create answers 429 with Retry-After.
Authorizations
Authorization code flow with PKCE-S256. RFC 8628 device flow is also supported.
Body
1Public host of the cluster to pin the repo to (e.g. royalcanin.partial.to); must be in the project's processing cell. Empty takes that cell's cluster.
Clusters to add native mirrors on once the repo is active. Core stores them with the create and retries each until its mirror exists.
16Hash format; defaults to sha1.
sha1, sha256 Project to create the repo in. Required for an account. A plugin installation's token may omit it; the repo then goes in the installation's project, and any other project answers 404.
^[0-9A-HJKMNP-TV-Z]{26}$Response
Created
github, entire A URL to the JSON Schema for this object.
"/api/v1/schemas/CreatedRepo.json"
Deprecated: read the X-Entire-Commit-Token response header instead.
Native-mirror clusters core stored with this create. Their status is on GET /repos/{repoId}/native-mirrors.
Native mirrors this create queued, each pending with its reserved placementId. Their status is on GET /repos/{repoId}/native-mirrors.
sha1, sha256 Public repository id (repo_ followed by a ULID). Plugin installation routes, access tokens and webhooks use it.
Provisioning lifecycle. A mirror is active from creation, before its initial clone completes. A native primary reports deleting while a cascade delete removes its native mirrors; poll until 404.
provisioning, active, failed, deleting public, private