Create a repository
Provisions a repository (org owner/admin only); a failed provision is
rolled back best-effort (see the 502). The repository belongs to the
caller’s org. kind says what it will hold and defaults to repo (a
plain git repository); it decides which protocol planes answer for the
name (see the Repo schema).
Authorizations
Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Headers
Optional external end-user identifier forwarded by the API gateway.
Body
The repository name. Must start with an alphanumeric character and
be ≤100 characters of [A-Za-z0-9._-].
^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$"my-model"
What the repository will hold. Defaults to repo.
repo, model, dataset, image Response
The created repository.
The user id of whoever created the repository, through any plane
(the API, git push, the HF client, the OCI registry). It is the
same id the platform session and mk-authentication's members
directory use, so a name is one directory lookup away. null
for a repository that records no user id; never an empty string.
"usr_01j9z8w3k6m2q4r7t9v1x3y5z7"
"Fine-tuned weights for the acme assistant."
Opaque, stable repository id (the canonical key; not a user label).
"rqz4h6k2m5n7p9r3t5v7w9x2"
The repository's kind, or null for a legacy repository created
before kinds existed and not yet typed through PATCH. An untyped
repository is served by every plane.
repo, model, dataset, image "model"
The repository name (URL label).
"my-model"
The organization URL slug the repository belongs to.
"acme"