Update a repository's labels
Applies a label-only update (name/visibility/description); owner or org
admin only. The repository id is stable, so a rename is a one-row DB
update — no Gitea/fga writes. Omitted fields are left unchanged;
visibility cannot be set to empty.
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. visibility cannot be set to an empty string.
Response
The updated repository.
"Fine-tuned weights for the acme assistant."
Opaque, stable repository id (the canonical key; not a user label).
"rqz4h6k2m5n7p9r3t5v7w9x2"
The repository name (URL label).
"my-model"
The organization URL slug the repository belongs to.
"acme"
private — visible only to the owner and explicit collaborators.
team — additionally visible to the owning team.
private, team