Skip to main content
Update mutable repository fields. Required scope: write

Options

string
required
Current repository name.
string | undefined
Organization override.
string | undefined
New repository name.
string | undefined
New default bookmark name.
Record<string, string | null> | undefined
Patch repository tags. String values set tags, null removes tags, and omitted keys are unchanged. Keys cannot start with $ (reserved for tag filter operators).
object | null | undefined
Set, replace, or remove the upstream remote. Omit to preserve the current upstream, pass null to remove it, or pass an object to attach/update it.

Upstream auth updates

On update, upstream credentials are tri-state: omit upstream to preserve the whole upstream, pass upstream: null to remove it, pass upstream.auth: null to clear credentials, or pass token / username-password auth to replace credentials.

Response

string
Repository ID.
string
Organization slug.
string
Repository name.
string
Default bookmark name.
string
Current change ID at the default bookmark tip.
UpstreamConfig | null
Configured upstream remote, or null when no upstream is configured.
string
Creation time.
Record<string, string>
Repository tags.

UpstreamConfig

string
Upstream Git remote URL.
'token' | 'username_password' | null
Stored upstream authentication kind, or null when the upstream is public.