Update a repository's labels
Applies a label-only update (name/description/kind); org owner/admin only. The repository id is stable, so a rename touches no contents. Omitted fields are left unchanged.
kind is the ONE way a repository’s kind changes after creation (the
protocol planes never change it): it types a legacy kind: null
repository and corrects a wrong kind. repo, model and dataset
convert freely and any repository may become image; a repository
whose container images are still named by a tag can be given no
other kind — leaving image, or typing a legacy null repository as
anything else, is refused with 409 kind_has_content (list and
delete the tags through this API first). A switch away from image
collects every image no tag reaches before it is judged, so an image
only ever pushed by digest, or untagged through the registry, never
blocks it. A kind is never un-set.
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.
Path Parameters
The organization URL slug.
The repository name (URL label).
^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$Body
A partial update. Every field is optional; an omitted field is left unchanged.
Response
The updated 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"