Git Providers

Partially update credentials for an existing git provider. Only the fields you send are replaced; omitted fields keep their stored values. Fields that don't apply to the provider's auth method are ignored on the service side.

patch/git-providers/{provider_id}/credentials

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/git-providers/{provider_id}/credentials
  • Auth: HTTP bearer

Path parameters

provider_idinteger required

Git provider ID

Request body

app_idstring nullable

Application ID (GitHub App integer as string; GitLab App string).

app_secretstring nullable

GitLab App secret (not used by GitHub App — use client_secret).

client_idstring nullable

OAuth client ID (GitLab OAuth, GitHub App).

client_secretstring nullable

OAuth client secret (GitLab OAuth, GitHub App).

private_keystring nullable

GitHub App private key (PEM).

redirect_uristring nullable

OAuth redirect URI (GitLab OAuth / GitLab App).

tokenstring nullable

PAT for PAT-type providers.

webhook_secretstring nullable

GitHub App webhook secret.

Response

Credentials updated

auth_methodstring required
base_urlstring nullable
created_atstring date-time required
idinteger required
is_activeboolean required
is_defaultboolean required
namestring required
provider_typestring required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 53 revisions of this API.