Create a stored HTTPS credential for a repository configured with a generic Git upstream.
Deprecated: Use /api/repos/{repo_name}/git-credentials instead.
Documentation Index
Fetch the complete documentation index at: https://code.storage/docs/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Store HTTPS credentials for a generic Git upstream such as GitLab, Bitbucket, Gitea, Forgejo, Codeberg, or SourceHut.
Request body for storing a new HTTPS Git credential against a repository configured for a generic Git provider.
Password or access token for the upstream provider.
"glpat_xxxxxxxxxxxx"
Repository identifier returned when the repository was created.
"repo_7f2b3d9"
Optional username for HTTPS authentication. Omit it for token-only providers.
"git"
Credential created successfully.