write
Options
Repository name to update.
Organization override.
New repository name.
New default bookmark name.
Omit to leave upstream unchanged. Pass
None to remove the upstream entirely. Pass UpstreamConfig to set or replace the upstream URL.Upstream auth tri-state
UpstreamConfig.auth has different meanings on update:
| Value | Behavior |
|---|---|
omitted / UNSET | Preserve the existing stored credential while updating the URL. |
None | Clear the stored credential and make the upstream public. |
TokenAuth or UsernamePasswordAuth | Replace the stored credential. |
Response
Repository ID.
Organization slug.
Repository name.
Default bookmark name.
Current change ID at the default bookmark tip.
Configured upstream remote, or null when no upstream is configured.
Creation time.
Repository tags.
UpstreamConfig
Upstream Git remote URL.
Stored upstream authentication kind, or null when the upstream is public.

